Use current time as published date (#656) #1918
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: tests | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
# Setup | |
- name: Check out source repository | |
uses: actions/checkout@v2 | |
- name: Install Nix | |
uses: DeterminateSystems/nix-installer-action@v4 | |
- name: Setup Nix cache | |
uses: DeterminateSystems/magic-nix-cache-action@v2 | |
# Separates all the cache downloading time from the time required to actually run a step | |
# of the workflow | |
- name: Initialize Nix | |
run: nix develop | |
# Unfortunately I can't run 'spago test' in a derivation because it doesn't | |
# have a mode that ignores the cache. So we run it in a script instead. | |
# Once we can make this a normal derivation then we can delete this | |
# workflow file altogether. | |
- name: Run Spago tests | |
run: nix develop --command run-tests-script |