bump golang to 1.23.x, python to 3, and remove asdf .tool-versions #27
Workflow file for this run
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 | |
pull_request: | |
jobs: | |
test: | |
name: Run Go Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the Repo | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
with: | |
fetch-depth: 0 # needed for go-change-delta to work correctly | |
- name: Load Nix | |
uses: ./.github/actions/load-nix | |
with: | |
nix-flake-attribute: ".#ci-runtests" | |
- name: Get previous commit SHA | |
if: github.ref == 'refs/heads/main' # Ensures this job only runs on pushes to main | |
id: previous_commit | |
run: echo "prev_sha=$(git rev-parse HEAD~1)" >> $GITHUB_OUTPUT | |
- name: Get Affected Packages | |
uses: ./.github/actions/go-change-delta | |
id: delta | |
with: | |
use-nix: 'true' | |
base-ref: ${{ steps.previous_commit.outputs.prev_sha || github.base_ref }} | |
nix-flake-attribute: ".#ci-runtests" | |
- name: Run Tests In Nix | |
if: steps.delta.outputs.packages != '' | |
run: nix develop .#ci-runtests -c sh -c "go test -timeout 5m -cover -covermode=count ${{ steps.delta.outputs.packages }}" |