This repository has been archived by the owner on Jun 3, 2024. It is now read-only.
remove block variables @action,@dataset,@caller_address #51
Workflow file for this run
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 | |
on: | |
pull_request: | |
types: [ opened, synchronize, reopened ] | |
workflow_dispatch: | |
push: | |
branches: | |
- "dev" | |
jobs: | |
unit-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
token: ${{ secrets.KWIL_MACH_SECRET }} | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.21' | |
check-latest: true | |
- name: Install dependencies | |
env: | |
GH_ACCESS_TOKEN: ${{ secrets.KWIL_MACH_SECRET }} | |
run: | | |
go version | |
git config --global url."https://${GH_ACCESS_TOKEN}:[email protected]/kwilteam/".insteadOf "https://github.com/kwilteam/" | |
make download | |
- name: Check tidiness of go.mod and go.sum | |
run: | | |
./scripts/mods/check_tidy.sh | |
- name: Ensure generated antlr is up-to-date | |
run: | | |
./scripts/antlr/check_sync.sh | |
- name: Run build | |
run: | | |
make build-go | |
- name: Run unit test | |
run: | | |
make test |