Skip to content

Commit a59593b

Browse files
authored
ci: setup GitHub Actions (#718)
1 parent ae68b22 commit a59593b

File tree

2 files changed

+47
-1
lines changed

2 files changed

+47
-1
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: angular-builders
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-18.04
12+
strategy:
13+
fail-fast: true
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
18+
- uses: actions/cache@v1
19+
id: node-modules
20+
with:
21+
path: |
22+
node_modules
23+
*/*/node_modules
24+
key: ${{ runner.os }}-node-modules
25+
restore-keys: ${{ runner.os }}-node-modules
26+
27+
- uses: actions/setup-node@v1
28+
with:
29+
node-version: 12.12
30+
registry-url: 'https://registry.npmjs.org'
31+
32+
- name: Install dependencies
33+
run: yarn --non-interactive --no-progress
34+
35+
- name: Bootstrap packages
36+
run: yarn bootstrap:packages
37+
38+
- name: Run CI scripts
39+
run: yarn ci
40+
41+
# Note: this has to be commented until Travis is disabled completely.
42+
# - name: deploy
43+
# # Deploy only on the master branch.
44+
# if: github.ref == 'refs/heads/master'
45+
# env:
46+
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
47+
# run: bash scripts/default-registry.sh

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@ node_modules
55
yarn.lock
66
scripts/storage
77
scripts/htpasswd
8-

0 commit comments

Comments
 (0)