Skip to content

Commit

Permalink
ci: setup GitHub Actions (#718)
Browse files Browse the repository at this point in the history
  • Loading branch information
arturovt committed Apr 19, 2020
1 parent ae68b22 commit a59593b
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 1 deletion.
47 changes: 47 additions & 0 deletions .github/workflows/angular-builders.yml
@@ -0,0 +1,47 @@
name: angular-builders

on:
push:
branches:
- master
pull_request:

jobs:
build:
runs-on: ubuntu-18.04
strategy:
fail-fast: true

steps:
- uses: actions/checkout@v2

- uses: actions/cache@v1
id: node-modules
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-node-modules
restore-keys: ${{ runner.os }}-node-modules

- uses: actions/setup-node@v1
with:
node-version: 12.12
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: yarn --non-interactive --no-progress

- name: Bootstrap packages
run: yarn bootstrap:packages

- name: Run CI scripts
run: yarn ci

# Note: this has to be commented until Travis is disabled completely.
# - name: deploy
# # Deploy only on the master branch.
# if: github.ref == 'refs/heads/master'
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# run: bash scripts/default-registry.sh
1 change: 0 additions & 1 deletion .gitignore
Expand Up @@ -5,4 +5,3 @@ node_modules
yarn.lock
scripts/storage
scripts/htpasswd

0 comments on commit a59593b

Please sign in to comment.