-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #120 from django-webpack/migrate-to-github-actions
Migrate from CircleCI to GitHub actions
- Loading branch information
Showing
2 changed files
with
56 additions
and
46 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: main | ||
|
||
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 |