Merge pull request #661 from iotexproject/task-processor-1 #1317
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: pr_check | |
on: | |
push: | |
branches: [ "develop", "pull-request" ] | |
pull_request: | |
branches: [ "develop", "pull-request" ] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ ubuntu-latest ] | |
permissions: | |
contents: read | |
packages: write | |
id-token: write | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
fetch-depth: 0 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '21.x' | |
- name: Run Unit tests for smart-contract | |
run: make contract_test | |
- name: Setup Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.22 | |
- name: Run Unit tests. | |
run: make unit_test | |
- name: Upload Coverage report to CodeCov | |
uses: codecov/codecov-action@v1.0.0 | |
with: | |
token: ${{secrets.CODECOV_TOKEN}} | |
file: ./cover.out |