-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
43 additions
and
42 deletions.
There are no files selected for viewing
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,7 @@ | ||
on: [push, workflow_dispatch] | ||
|
||
jobs: | ||
run-tests: | ||
uses: ./.github/workflows/tests.yml | ||
build: | ||
uses: ./.github/workflows/build.yml |
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 |
---|---|---|
@@ -1,26 +1,23 @@ | ||
name: 'Run tests' | ||
name: 'Build' | ||
|
||
on: [push, workflow_dispatch] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup node | ||
uses: actions/setup-node@v4 | ||
with: | ||
# TODO: add version to a .nvmrc or at least a variable | ||
node-version: 18.12.1 | ||
cache: npm | ||
- name: Install | ||
run: npm ci | ||
- name: Build | ||
run: npm run build | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: lib-${{ github.sha }} | ||
path: ./dist | ||
if-no-files-found: error | ||
runs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup node | ||
uses: actions/setup-node@v4 | ||
with: | ||
# TODO: add version to a .nvmrc or at least a variable | ||
node-version: 18.12.1 | ||
cache: npm | ||
- name: Install | ||
run: npm ci | ||
- name: Build | ||
run: npm run build | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: lib-${{ github.sha }} | ||
path: ./dist | ||
if-no-files-found: error |
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 |
---|---|---|
@@ -1,20 +1,17 @@ | ||
name: 'Run tests' | ||
|
||
on: [push, workflow_dispatch] | ||
|
||
jobs: | ||
run-tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup node | ||
uses: actions/setup-node@v4 | ||
with: | ||
runs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup node | ||
uses: actions/setup-node@v4 | ||
with: | ||
# TODO: add version to a .nvmrc or at least a variable | ||
node-version: 18.12.1 | ||
cache: npm | ||
- name: Install | ||
run: npm ci --prefer-offline | ||
- name: Run tests | ||
run: npm run test:unit | ||
node-version: 18.12.1 | ||
cache: npm | ||
- name: Install | ||
run: npm ci --prefer-offline | ||
- name: Run tests | ||
run: npm run test:unit |