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

Migrate from CircleCI to GitHub actions #120

Merged
merged 3 commits into from
Dec 18, 2023
Merged
Show file tree
Hide file tree
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
46 changes: 0 additions & 46 deletions .circleci/config.yml

This file was deleted.

56 changes: 56 additions & 0 deletions .github/workflows/config.yml
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