Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: setup Node.js 23 forward compatibility testing #1545

Merged
merged 3 commits into from
Jan 23, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 44 additions & 9 deletions .github/workflows/tact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,24 @@ on:
workflow_dispatch:

jobs:
test:
backwards-compat:
strategy:
fail-fast: false
matrix:
node-version: [22]
node-version: [18]
os: [ubuntu-latest, windows-latest, macos-latest]

runs-on: ${{ matrix.os }}

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Node.js 18 for backwards compat tests
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: 18
node-version: ${{ matrix.node-version }}
# without caching

- name: Backwards compat tests
- name: Backwards compatibility tests
run: |
# Temporarily ignore engines
yarn config set ignore-engines true
Expand All @@ -45,6 +43,45 @@ jobs:
yarn cleanall
yarn config delete ignore-engines

forward-compat:
strategy:
fail-fast: false
matrix:
node-version: [23]
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
# without caching

- name: Forward compatibility tests
run: |
# Install dependencies and perform some steps of the build pipeline,
# skipping the contract generation and the final `yarn build` step
yarn install
yarn gen:grammar
yarn gen:stdlib
yarn gen:func-js
# Clean-up
yarn cleanall

test:
strategy:
fail-fast: false
matrix:
node-version: [22]
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
Expand Down Expand Up @@ -129,9 +166,7 @@ jobs:
os: [ubuntu-latest, windows-latest, macos-latest]
package-manager: [npm, yarn, pnpm, bun]
# follow-up ifs are for ensuring clean state at all times

runs-on: ${{ matrix.os }}

steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand Down
Loading