Skip to content

Commit

Permalink
move to github actions
Browse files Browse the repository at this point in the history
Signed-off-by: Augustin Husson <[email protected]>
  • Loading branch information
Nexucis committed Jul 16, 2024
1 parent 3942547 commit c46cec5
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 72 deletions.
72 changes: 0 additions & 72 deletions .circleci/config.yml

This file was deleted.

16 changes: 16 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: "Setup environment"
description: "Setup NPM environment"
runs:
using: composite
steps:
- name: Install nodejs
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
registry-url: "https://registry.npmjs.org"
- uses: actions/[email protected]
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
42 changes: 42 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: ci
on:
push:
branches:
- master
pull_request:
merge_group:

jobs:

build:
name: "build"
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: setup npm environment
uses: ./.github/actions/setup
- run: npm ci
- run: npm run build
- run: npm run build:cjs
test:
name: "test"
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: setup npm environment
uses: ./.github/actions/setup
- run: npm ci
- run: npm test

lint:
name: "lint"
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: setup npm environment
uses: ./.github/actions/setup
- run: npm ci
- run: npm run lint
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v18.16.0

0 comments on commit c46cec5

Please sign in to comment.