upgrade go version to 1.21 #118
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: ci-go | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
go-fmt: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Source | |
uses: actions/checkout@v2 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: './relay-server/go.mod' | |
- name: Check gofmt | |
run: gofmt -s -d $(find . -type f -name '*.go' -print) | |
working-directory: relay-server | |
go-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Source | |
uses: actions/checkout@v2 | |
- name: Run Revive Action by pulling pre-built image | |
uses: morphy2k/revive-action@v2 | |
with: | |
path: "./relay-server/..." | |
go-sec: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Source | |
uses: actions/checkout@v2 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: './relay-server/go.mod' | |
- name: Run Gosec Security Scanner | |
uses: securego/gosec@master | |
with: | |
args: -exclude=G402 ./relay-server |