Skip to content

Commit

Permalink
Merge pull request #26 from devlinjunker/master-build-action
Browse files Browse the repository at this point in the history
Build Github Action - on PR and Commit (Push) to master
  • Loading branch information
devlinjunker committed May 18, 2020
2 parents d175402 + 6321e77 commit f527b9f
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/master-build-status.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build `master`

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x]

steps:
- uses: actions/checkout@v2
- name: Build Project with Node ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install -D

- name: Run build process
run: |
npm run lint
npm run build
npm run test
10 changes: 10 additions & 0 deletions scripts/README.scripts.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@ contains a Github Personal Access Token from your user account: https://github.c
There is also a reference to the repo name in the script, so you will need to ensure that this is updated if
the repo name is different.

### Master Build Status
This action checks the build status of the project and verifies that all of the tests and style linters are
not failing. This occurs for every commit in a Github PR against the `master` branch, and for every commit (push)
to the `master` branch on Github.

Runs:
- linter
- build (with webpack)
- tests (karma)

## Githooks
TODO...

Expand Down

0 comments on commit f527b9f

Please sign in to comment.