Skip to content

Commit

Permalink
Configure CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Hanson committed Jul 14, 2023
1 parent afd06f3 commit 604184a
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: thoughtbelt CI

on:
push:
branches: [main]
pull_request

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 20.x]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: yarn --frozen-lockfile
- name: Run linter
run: yarn lint
- name: Run tests
run: yarn test
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"scripts": {
"belt": "bin/belt",
"lint": "eslint --max-warnings=0 --ext js,jsx,ts,tsx .",
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"testing not yet configured\""
},
"author": "Stephen Hanson",
"license": "MIT",
Expand Down

0 comments on commit 604184a

Please sign in to comment.