Commit 9539e336 authored by protolambda's avatar protolambda

ci: lint Go code

parent 8c8619aa
on: [push, pull_request] on: [push, pull_request]
name: Cannon Test name: Cannon Test
permissions:
contents: read
jobs: jobs:
cannon-test: cannon-test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
...@@ -43,6 +45,12 @@ jobs: ...@@ -43,6 +45,12 @@ jobs:
key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }} key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }}
restore-keys: | restore-keys: |
${{ runner.os }}-go-${{ matrix.go-version }}- ${{ runner.os }}-go-${{ matrix.go-version }}-
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.52
working-directory: mipsevm
skip-cache: true # we already have go caching
- name: Build examples - name: Build examples
working-directory: ./example working-directory: ./example
run: make elf run: make elf
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment