Skip to content

Tethys upgrade

Tethys upgrade #348

Workflow file for this run

name: Go
on:
push:
branches:
- main
pull_request:
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 18.x ]
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.16
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Build and test solidity contracts
run: cd solidity && npm ci && npm run typechain && npm run test
- name: Format compiled solidity contracts for go
run: scripts/compile-contracts-for-go.sh
- name: Build the Althea-L1 binary
run: make
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.16
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Build and test solidity contracts
run: cd solidity && npm ci && npm run typechain && npm run test
- name: Format compiled solidity contracts for go
run: scripts/compile-contracts-for-go.sh
- name: Install golangci-lint
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
- name: Run golangci-lint
run: golangci-lint run -c .golangci.yml --disable-all --timeout=30m && go mod verify
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.16
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Build and test solidity contracts
run: cd solidity && npm ci && npm run typechain && npm run test
- name: Format compiled solidity contracts for go
run: scripts/compile-contracts-for-go.sh
- name: Test
run: go test ./... -mod=readonly -timeout 30m -coverprofile=profile.out -covermode=atomic -race