Skip to content

chore: use npm pack in tests #147

chore: use npm pack in tests

chore: use npm pack in tests #147

Workflow file for this run

name: Build and Test
on: [push]
jobs:
build-and-test:
strategy:
matrix:
node-version: [18, 20, 22]
node-tag: [v7.2.0] # latest known good
compiler-tag: [v8.0.0] # latest known good
aux-ci-run: [true]
# for lts node also test first known compatible and latest known good compiler and node versions
include:
- node-version: 22
node-tag: v7.2.0 # @aeternity/aepp-sdk@14 only supports node v7.1.0 and above, the devmode bundle in v7.1.0 is buggy, thus using v7.2.0 as lowest usable version
compiler-tag: v8.0.0 # @aeternity/aepp-sdk@14 only supports compiler v8.0.0 and above
aux-ci-run: true
- node-version: 22
node-tag: latest
compiler-tag: latest
aux-ci-run: true
- node-version: 22
node-tag: # latest known good versions are defaulted to, thus not passed explicitly
compiler-tag:
aux-ci-run: # no aux-ci-run as main ci run, latest version run all tests that are version independent
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build:clean && npm run build
- run: npm run lint:ci
- run: npm test
env:
NODE_VERSION: ${{ matrix.node-version }}
NODE_TAG: ${{ matrix.node-tag }}
COMPILER_TAG: ${{ matrix.compiler-tag }}
AUX_CI_RUN: ${{ matrix.aux-ci-run }}