go version: bump go version to 1.21 #1180
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: Verify | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
# Verify, lint and run tests | |
lint-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install nix | |
uses: cachix/install-nix-action@v15 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
- name: Install Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.21 | |
- name: Install bob | |
run: make install-prod | |
- name: bob login | |
run: bob auth init --token ${{ secrets.BOB_TOKEN }} | |
- name: Install nix derivations | |
run: bob install | |
- name: Check 'go mod tidy' | |
run: bob build gomodtidy | |
- name: Lint code | |
run: bob build lint | |
- name: Build | |
run: bob build --push | |
- name: Set Git author name and email address | |
run: git config --global user.name "builder" && git config --global user.email "[email protected]" | |
- name: Run tests | |
run: bob build test | |
- name: Check flake | |
run: nix build |