Merge pull request #123 from django-webpack/fix-strip-ansi-import #18
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: test | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
# Oldest maintenance LTS, End-of-Life 2025-04-30 | |
test-node-18: | |
runs-on: ubuntu-latest | |
container: | |
image: node:18.19 | |
env: | |
NODE_OPTIONS: --openssl-legacy-provider | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
run: | | |
echo "Node version: $(node --version)" | |
echo "NPM version: $(npm --version)" | |
npm install | |
npm run ci | |
- name: Unset NODE_OPTIONS | |
run: | | |
unset NODE_OPTIONS | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: | |
- "current" | |
- "20.10" | |
env: | |
NODE_OPTIONS: --openssl-legacy-provider | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Print Node.js version | |
run: | | |
echo "Node version: $(node --version)" | |
echo "NPM version: $(npm --version)" | |
- name: Install dependencies and run tests | |
run: | | |
npm install | |
npm run ci | |
- name: Unset NODE_OPTIONS | |
run: | | |
unset NODE_OPTIONS |