-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(build): add an initial variation of GitHUb actions for build
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |