Skip to content

chore(ci): improve ci runs #13

chore(ci): improve ci runs

chore(ci): improve ci runs #13

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- 'main'
jobs:
run_tests:
name: run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v26
# Binary cache is maintained in update_cache.yml; see comments there for details.
- uses: zombiezen/[email protected]
with:
substituters: s3://mfenniak-multicorn2-nix-cache?region=us-west-2
trusted_public_keys: mfenniak-multicorn2-nix-cache:mldk0J26tzkCmqihQKOiyuAm1HAs2CHdIZC0ESr56ZA=
# Seems to be a bug in setup-nix-cache-action where, even though we're only providing a trusted_public_keys input
# and no secret_keys input, it still tries to create a post-build-hook that will push packages to the cache. This
# is a hacky workaround to remove that hook -- we find the post-build-hook created by setup-nix-cache-action and
# truncate it to 0 bytes so it does nothing.
- run: sudo find /home/runner/work/_temp -type d -name 'setup-nix-cache-action-*' -exec sh -c 'truncate -s 0 "$1"/post-build-hook' _ {} \;
# Run all the tests, with unlimited log lines in CI
- run: nix build .#allTestSuites
# Upload logs from ./result/test_output as a build artifact
- name: Upload test logs
if: success() || failure()
uses: actions/upload-artifact@v3
with:
name: pg_regress-logs
path: ./result/test_output