Skip to content

checks

checks #261

Workflow file for this run

#
# ci.yml
#
# Run tests for all pushed commits and opened pull requests on Github.
#
defaults:
run:
working-directory: ./contracts
name: CI for building contracts
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Set up NodeJS
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Git checkout
uses: actions/checkout@v2
- name: NPM ci, build, & test
run: |
npm install
npm run build --if-present
npm test
npm run coverage
env:
CI: true
working-directory: ./contracts
- name: current directory
run: |
ls -al
- name: create badge
uses: gaelgirodon/ci-badges-action@v1
with:
gist-id: 2cfa2783ab5d2eb2b178d1cf96fa0a29
token: ${{ secrets.GIST_TOKEN }}