Skip to content

ci: update go to 1.20, staticcheck, and gh actions #37

ci: update go to 1.20, staticcheck, and gh actions

ci: update go to 1.20, staticcheck, and gh actions #37

Workflow file for this run

name: Test, build, and release
on: [push, pull_request]
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v4
with:
go-version: '1.20'
- uses: actions/checkout@v3
- name: Lint
run: |
go install honnef.co/go/tools/cmd/staticcheck@v0.4.3
make lint
- run: make test-unit
- run: docker-compose up -d
- name: Ensure that node is running
run: |
while [[ `curl -s -o /dev/null -w %{http_code} localhost:3013/api` != 200 ]]; do
sleep 0.2;
done
- run: make test-integration
- name: Build release
run: make build-release
- name: Publish release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
dist/windows.zip
dist/darwin.zip
dist/linux.zip
draft: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}