Feature/hardhat #13
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
# This workflow uses actions that are not certified by GitHub. | |
# They are provided by a third-party and are governed by | |
# separate terms of service, privacy policy, and support | |
# documentation. | |
# This workflow will install Deno and run tests across stable and nightly builds on Windows, Ubuntu and macOS. | |
# For more information see: https://github.com/denolib/setup-deno | |
name: Onyx-Protocol | |
on: | |
push: | |
branches: [develop] | |
pull_request: | |
branches: [develop] | |
jobs: | |
test: | |
name: Test on node ${{ matrix.node_version }} and ${{ matrix.os }} | |
runs-on: self-hosted | |
strategy: | |
matrix: | |
node_version: ['12'] | |
os: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Use Node.js ${{ matrix.node_version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node_version }} | |
- name: Install Dependencies | |
run: | | |
sudo wget https://github.com/ethereum/solidity/releases/download/v0.5.16/solc-static-linux -O /usr/local/bin/solc | |
sudo chmod +x /usr/local/bin/solc | |
- run: npm install -g yarn | |
- run: yarn --frozen-lockfile | |
- run: yarn run test --if-present |