-
Notifications
You must be signed in to change notification settings - Fork 14
33 lines (33 loc) · 912 Bytes
/
check-go.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Check go
on:
push:
paths:
# Set this to the directory of the template
- go/**
- .github/workflows/check-go.yml
workflow_dispatch:
workflow_call:
concurrency:
group: check-go-${{ github.ref }}
cancel-in-progress: true
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: cachix/install-nix-action@v30
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
flake-registry = https://raw.githubusercontent.com/akirak/flake-pins/master/registry.json
- uses: cachix/cachix-action@v15
with:
name: akirak
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
pushFilter: '-source$'
- uses: actions/checkout@v4
with:
path: ./tmp
- name: Use the template
run: |
nix flake new -t ./tmp#go work
- run: go version