Thomas E Lackey
4e9ff52729
Some checks failed
Pull Request Labeler / triage (pull_request) Failing after 6s
Dependency Review / dependency-review (pull_request) Failing after 1m34s
Lint / Run golangci-lint (pull_request) Successful in 3m24s
Semgrep / Scan (pull_request) Failing after 13s
Tests / cleanup-runs (pull_request) Failing after 4s
Lint / Run flake8 on python integration tests (pull_request) Successful in 3m51s
Run Gosec / Gosec (pull_request) Failing after 7m29s
Tests / test-unit-cover (pull_request) Failing after 5m30s
Tests / test-rpc (pull_request) Successful in 5m32s
Tests / test-importer (pull_request) Failing after 12m18s
Tests / sdk_tests (pull_request) Has been cancelled
30 lines
701 B
YAML
30 lines
701 B
YAML
name: Deploy Contract
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
cleanup-runs:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: rokroskar/workflow-run-cleanup-action@master
|
|
env:
|
|
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
|
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/main'"
|
|
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Use Node.js
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: '12.x'
|
|
- name: Install dependencies
|
|
run: npm install
|
|
- name: Test contract
|
|
run: |
|
|
sudo make contract-tools
|
|
sudo make test-contract
|