Skip to content

Migrate to the new figure-linux-standard action runners #178

Migrate to the new figure-linux-standard action runners

Migrate to the new figure-linux-standard action runners #178

Workflow file for this run

name: marketpalace-raise-contract
on:
push:
branches: [ main ]
tags:
- 'v*.*.*'
- 't*.*.*'
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
jobs:
check:
runs-on: figure-linux-standard
steps:
- name: checkout
uses: actions/checkout@v2
- name: toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: 1.67.0-x86_64-unknown-linux-gnu
default: true
components: clippy, rustfmt
- name: cargo format
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
- name: cargo tarpaulin xml report
uses: actions-rs/[email protected]
with:
version: '0.16.0'
out-type: Xml
- name: upload to codecov.io
uses: codecov/codecov-action@v1
with:
fail_ci_if_error: false
- name: archive code coverage results
uses: actions/upload-artifact@v1
with:
name: code-coverage-report
path: cobertura.xml
args: '-- --ignore-tests'
release:
needs: check
runs-on: figure-linux-standard
if: startsWith(github.ref, 'refs/tags/v')
steps:
- name: checkout
uses: actions/checkout@v2
- name: optimize
run: make optimize
- name : release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: |
artifacts/marketpalace_raise_contract.wasm
artifacts/checksums.txt
test-release:
needs: check
runs-on: figure-linux-standard
if: startsWith(github.ref, 'refs/tags/t')
steps:
- name: checkout
uses: actions/checkout@v2
- name: optimize
run: make optimize
- name : test-release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: |
artifacts/marketpalace_raise_contract.wasm
artifacts/checksums.txt