diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..db96224 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,41 @@ +name: test + +on: + push: + pull_request: + +jobs: + test: + name: Test + runs-on: ubuntu-latest + environment: production + + permissions: + contents: "read" + id-token: "write" + + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + lfs: true + + - name: Checkout LFS + run: git lfs checkout + + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: '20.x' + + - name: Install npm + run: npm ci + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version-file: "./go.mod" + + - name: "build" + run: + - echo "::error file=main.go,line=10,col=15::Something went wrong" diff --git a/.golangci.json b/.golangci.json index 47aaeec..7a09f18 100644 --- a/.golangci.json +++ b/.golangci.json @@ -39,6 +39,7 @@ ] }, "issues": { + "exclude-use-default": true, "max-issues-per-linter": 0, "max-same-issues": 0, "fix": true