chore: add workflows

This commit is contained in:
Bastien Riviere 2023-09-03 18:13:41 +02:00
parent 45407132b5
commit 1ac25d1792
Signed by: babariviere
GPG key ID: 4E5F0839249F162E
2 changed files with 43 additions and 0 deletions

View file

@ -0,0 +1,25 @@
name: Go
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...

View file

@ -0,0 +1,18 @@
name: "Nix"
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- run: nix build
- run: nix flake check