added big.Percentage #181
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: Checks | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- v* | |
pull_request_target: | |
jobs: | |
Linting: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
fetch-depth: 0 # Fetch all tags as well. | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: 1.18 | |
- name: Format. | |
run: make format | |
- name: Linting & vetting. | |
run: make lint-ci | |
Testing_and_building: | |
runs-on: ubuntu-latest | |
env: | |
env: ${{ secrets.env }} | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
fetch-depth: 0 # Fetch all tags as well. | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: 1.18 | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Running tests | |
run: make test-ci |