solidity-flattener/.github/workflows/config.yml

45 lines
851 B
YAML
Raw Normal View History

2020-09-08 23:29:23 -07:00
name: Solidity flattener CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
2023-02-23 02:37:07 -08:00
node-version: [14, 16, 18]
2020-09-08 23:29:23 -07:00
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
2023-02-23 02:37:07 -08:00
uses: actions/setup-node@v3
2020-09-08 23:29:23 -07:00
with:
node-version: ${{ matrix.node-version }}
- name: Install, test
run: |
npm install
npm test
env:
CI: true
checkCodestyle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
2023-02-23 02:37:07 -08:00
uses: actions/setup-node@v3
2020-09-08 23:29:23 -07:00
with:
2023-02-23 02:37:07 -08:00
node-version: '18.x'
2020-09-08 23:29:23 -07:00
- name: Install and check codestyle
run: |
npm install
npm run lint
env:
CI: true