From a59593b03904fbdc0ced986d8da77cc157cc5bf9 Mon Sep 17 00:00:00 2001 From: Artur Androsovych Date: Sun, 19 Apr 2020 20:10:10 +0100 Subject: [PATCH] ci: setup GitHub Actions (#718) --- .github/workflows/angular-builders.yml | 47 ++++++++++++++++++++++++++ .gitignore | 1 - 2 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/angular-builders.yml diff --git a/.github/workflows/angular-builders.yml b/.github/workflows/angular-builders.yml new file mode 100644 index 000000000..1919d95d0 --- /dev/null +++ b/.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 diff --git a/.gitignore b/.gitignore index beb768f2d..8bd72edd9 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,3 @@ node_modules yarn.lock scripts/storage scripts/htpasswd -