Skip to content

Commit

Permalink
chore(build): add an initial variation of GitHUb actions for build
Browse files Browse the repository at this point in the history
  • Loading branch information
DethAriel committed Nov 18, 2021
1 parent 74eae96 commit 5fa05fa
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build and test
on: [push]
# on:
# push:
# branches: [ master ]
# pull_request:
# branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
name: Set up Node.js
# Should be in sync with .nvmrc
node-version: "14"
cache: "yarn"
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Generate source files for demo site
run: yarn demo:file-gen
- name: Build the lib
run: yarn lib:build
- name: Run lint
run: yarn lint
- name: Check code styles
run: yarn prettier --check --ignore-unknown *
- name: Build the demo site
run: yarn demo:build
- name: Test the lib
run: yarn ng test ng-recaptcha --code-coverage
- name: Upload code coverage results to coveralls
run: yarn coveralls < coverage/ng-recaptcha/lcov.info
- name: Run e2e tests for demo site
run: yarn ng e2e demo

0 comments on commit 5fa05fa

Please sign in to comment.