Skip to content

Commit

Permalink
feat: add build-test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Murray committed Mar 23, 2022
1 parent 6cb4df2 commit 7acc3e2
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Build and Test

on:
push:
branches-ignore:
- 'renovate/**'

jobs:
build-and-test:
runs-on: ubuntu-latest

steps:
#Checkout and setup
- uses: actions/checkout@v2
- name: Use Node.js 16.x
uses: actions/setup-node@v2
with:
node-version: 16.x
cache: 'yarn'

# Install deps
- name: Install
run: yarn install --frozen-lockfile

#Build
- name: Build
run: yarn build

# Run unit tests on affected apps
- name: Run Tests
run: yarn test

0 comments on commit 7acc3e2

Please sign in to comment.