-
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.
Switch to Github Actions for automation
- Loading branch information
Showing
3 changed files
with
68 additions
and
24 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,33 @@ | ||
name: Regression checks | ||
on: | ||
push: | ||
branches: | ||
- '**' | ||
schedule: # Weekly runs to pick up on bitrot | ||
- cron: '37 23 * * 0' | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
checks: | ||
name: Checks | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [9.11.2, lts/*, latest] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Setup nodejs ${{matrix.node-version}} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{matrix.node-version}} | ||
cache: 'npm' | ||
- name: Install packages | ||
run: npm ci || npm install # 9.11.2 doesn't grok "ci" | ||
- name: Syntax check | ||
run: npm run check | ||
- name: Regression tests | ||
run: npm run test |
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,35 @@ | ||
name: Release | ||
on: | ||
push: | ||
tags: | ||
- '[1-9]+.[0-9]+.[0-9]+' | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
release: | ||
name: Package and release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Setup nodejs | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: current | ||
cache: 'npm' | ||
- name: Install packages | ||
run: npm ci | ||
- name: Update version | ||
run: npm version --no-git-tag-version --force "$GITHUB_REF_NAME" | ||
- name: Package | ||
run: npm pack | ||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: chariotd-${{github.ref_name}}.tgz | ||
draft: true | ||
generate_release_notes: true | ||
fail_on_unmatched_files: true |
This file was deleted.
Oops, something went wrong.