Skip to content

Commit

Permalink
add ci workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Lynch committed Nov 19, 2020
1 parent a91d006 commit 62df78e
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: CI
on:
pull_request:
workflow_dispatch:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.15.1]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: ./script/build.sh
lint:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.15.1]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: ./script/lint.sh
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.15.1]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: ./script/test.sh
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
14.15.1
6 changes: 6 additions & 0 deletions script/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash

set -e

yarn install --frozen-lockfile
yarn build
6 changes: 6 additions & 0 deletions script/lint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash

set -e

yarn install --frozen-lockfile
yarn lint
6 changes: 6 additions & 0 deletions script/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash

set -e

yarn install --frozen-lockfile
yarn test

0 comments on commit 62df78e

Please sign in to comment.