Skip to content

Run CI only on push to main #13

Run CI only on push to main

Run CI only on push to main #13

name: rek build and test
on:
pull_request:
push:
branches: [main]
jobs:
build_and_test:
runs-on: ubuntu-22.04
steps:

Check failure on line 11 in .github/workflows/build-and-test.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-and-test.yaml

Invalid workflow file

You have an error in your yaml syntax on line 11
- uses: actions/checkout@v3
- uses: DeterminateSystems/flake-checker-action@v5
with:
fail-mode: true
- uses: DeterminateSystems/nix-installer-action@v6
- uses: DeterminateSystems/magic-nix-cache-action@v2
- name: Build
run: nix develop --command go build -v ./...
- name: Test
run: nix develop --command go test -v -p 1 ./...