restore tests #90
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: AsteriscCI | |
on: [push] | |
jobs: | |
rvgo-tests: | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
- name: Install Golang | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.21.x' | |
- name: Build rvsol | |
run: forge build | |
working-directory: rvsol | |
- name: Build rv64g test binaries | |
run: make bin bin/simple bin/minimal | |
working-directory: tests/go-tests | |
- name: Run tests | |
run: go test -v ./rvgo/... -coverprofile=coverage.out -coverpkg=./rvgo/... -skip '.+/slow|.+/evm|TestEVMStep' | |
- name: Run slow tests | |
run: go test -v ./rvgo/... -run '.+/slow|.+/evm|TestEVMStep' | |
- name: Fuzz | |
run: make fuzz | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
verbose: true | |
rvsol-tests: | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Golang | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.21.x' | |
- name: Build FFI | |
run: go build | |
working-directory: rvgo/scripts/go-ffi | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
- name: Run foundry tests | |
run: forge test -vvv --ffi | |
working-directory: rvsol | |
rvsol-lint: | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
- name: Run lint | |
run: make lint-check | |
working-directory: rvsol | |
rvgo-lint: | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '1.21.x' | |
cache: false | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v4 | |
with: | |
version: latest |