nim-ethers/.github/workflows/ci.yml

47 lines
949 B
YAML
Raw Normal View History

2022-01-26 13:41:22 +00:00
name: CI
2024-10-28 13:27:50 +00:00
on: [push, pull_request, workflow_dispatch]
2022-01-26 13:41:22 +00:00
jobs:
test:
runs-on: ubuntu-latest
2024-10-28 13:27:50 +00:00
timeout-minutes: 30
2022-01-26 13:41:22 +00:00
strategy:
matrix:
nim: [1.6.20, stable]
2022-01-26 13:41:22 +00:00
steps:
- name: Checkout
2024-10-28 13:27:50 +00:00
uses: actions/checkout@v4
2022-01-26 13:41:22 +00:00
- name: Install Nim
2024-10-28 13:27:50 +00:00
uses: iffy/install-nim@v4
2022-01-26 13:41:22 +00:00
with:
version: ${{ matrix.nim }}
2024-10-28 13:27:50 +00:00
2022-01-26 13:41:22 +00:00
- name: Install NodeJS
2024-10-28 13:27:50 +00:00
uses: actions/setup-node@v4
2022-01-26 13:41:22 +00:00
with:
2024-10-28 13:27:50 +00:00
node-version: 18
2022-01-26 13:41:22 +00:00
- name: Install test node
working-directory: testnode
run: npm install
2024-10-28 13:27:50 +00:00
2022-01-26 13:41:22 +00:00
- name: Run test node
2022-01-27 09:07:52 +00:00
working-directory: testnode
2022-01-26 13:41:22 +00:00
run: npm start &
2024-10-28 13:27:50 +00:00
2022-01-26 13:41:22 +00:00
- name: Build
run: nimble install -y
2024-10-28 13:27:50 +00:00
2022-01-26 13:41:22 +00:00
- name: Test
run: nimble test -y
2024-10-28 13:27:50 +00:00
status:
if: always()
needs: [test]
runs-on: ubuntu-latest
steps:
- if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'skipped') }}
run: exit 1