build: release #30
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: Test | |
on: | |
push: | |
branches: [main, ci] | |
pull_request: | |
branches: [main] | |
jobs: | |
test-job: | |
runs-on: ubuntu-latest | |
steps: | |
# checkout and env setup | |
- uses: actions/checkout@v3 | |
- uses: DeterminateSystems/nix-installer-action@main | |
- uses: DeterminateSystems/magic-nix-cache-action@main | |
- name: Build the nix shell | |
run: nix develop --command just --version | |
# setup databases | |
- name: Start databases | |
run: nix develop --command just dbs/start | |
- name: Seed databases | |
run: nix develop --command just dbs/seed | |
# run tests | |
- name: Run tests | |
run: nix develop --command just test |