Merge pull request #345 from filefilego/fix-hash-cache-routes #754
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
# This workflow will build a golang project | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go | |
name: Unit Tests / Build | |
permissions: read-all | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install golangci-lint | |
run: wget -O- -nv https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.54.0 | |
- name: Add binary to path | |
run: sudo cp ./bin/golangci-lint /usr/bin/golangci-lint | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.20.7 | |
- name: Build | |
run: make build | |
- name: Lint | |
run: make lint | |
- name: Test | |
run: make unit |