Skip to content

update CI

update CI #43

Workflow file for this run

name: Go
on: [push, pull_request]
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.23
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Staticcheck
run: |
go install honnef.co/go/tools/cmd/staticcheck@latest
make lint
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: 'latest'
- name: Test
run: go mod vendor && make test
env:
SORACOM_EMAIL_FOR_TEST: ${{ secrets.SORACOM_EMAIL_FOR_TEST }}
SORACOM_PASSWORD_FOR_TEST: ${{ secrets.SORACOM_PASSWORD_FOR_TEST }}
SORACOM_AUTHKEY_ID_FOR_TEST: ${{ secrets.SORACOM_AUTHKEY_ID_FOR_TEST }}
SORACOM_AUTHKEY_FOR_TEST: ${{ secrets.SORACOM_AUTHKEY_FOR_TEST }}