Skip to content

Commit

Permalink
Switch to Github Actions for automation
Browse files Browse the repository at this point in the history
  • Loading branch information
jmattsson committed May 23, 2023
1 parent 1b0587a commit 013bf11
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 24 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/checks.yaml
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
35 changes: 35 additions & 0 deletions .github/workflows/release.yaml
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
24 changes: 0 additions & 24 deletions .travis.yml

This file was deleted.

0 comments on commit 013bf11

Please sign in to comment.