why is it marked as legacy??? #115
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 🔎 Tests | |
on: | |
push: | |
branches: [ master, develop, next/* ] | |
pull_request: | |
branches: [ master, develop, next/* ] | |
jobs: | |
ubuntu_build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
# Only LTS major version | |
# node-version: ['18', '19', '20', '21', '22', 'lts/*'] | |
node-version: ['lts/*'] | |
steps: | |
- name: Install yarn@berry first | |
run: npm install -g yarn@berry && yarn set version 4.2.1 && yarn --version | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Cache node modules | |
uses: actions/cache@v4 | |
id: cache | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-${{ matrix.node-version }}-${{ hashFiles('yarn.lock') }} | |
- name: Package install | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: yarn --version && yarn install | |
- name: Test | |
run: yarn test | |