mirror of
https://github.com/logos-storage/nim-ethers.git
synced 2026-01-02 13:43:06 +00:00
* Update dependencies for Nim 2.x * Use refc as memory management and disable styleCheck because of testutils * Fix ambiguous import * Change Address init because eth introduced Byte20 type for Address type * use uint64 instead of init64 * Rename properties after a change in eth to be closer to the spec * Use Opt type instead of Option * Add 2.0.12 version to CI * Increment the version * Update the Nim version in CI * Update to Nim 2.0.14 * Use Nim 2.x commit hash for contractabi * Remove stable on CI because we don't want to test with Nim 2.2.x * Update Nim minimum version to 2.0.14 * fix version deps * remove fq typename * Add debug flag * Define maximumtaggedversions * Update readme --------- Co-authored-by: Eric <5089238+emizzle@users.noreply.github.com>
54 lines
1.0 KiB
YAML
54 lines
1.0 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 30
|
|
strategy:
|
|
matrix:
|
|
nim: [2.0.14]
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
|
|
- name: Install Nim
|
|
uses: iffy/install-nim@v4
|
|
with:
|
|
version: ${{ matrix.nim }}
|
|
|
|
- name: Install NodeJS
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 18
|
|
|
|
- name: Install test node
|
|
working-directory: testnode
|
|
run: npm install
|
|
|
|
- name: Run test node
|
|
working-directory: testnode
|
|
run: npm start &
|
|
|
|
- name: Build
|
|
run: nimble install -y --maximumtaggedversions=2
|
|
|
|
- name: Test
|
|
run: nimble test -y
|
|
|
|
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
|