Skip to content

Commit

Permalink
ci(workflows): add continuous-integration
Browse files Browse the repository at this point in the history
  • Loading branch information
unicornware committed Sep 4, 2021
1 parent 20ab95d commit 30ebf2e
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Continuous Integration
#
# References:
#
# - https://github.com/actions/checkout
# - https://docs.github.com/en/actions/guides/building-and-testing-nodejs
# - https://github.com/actions/setup-node

---
name: continuous-integration
on: [pull_request]
jobs:
ci:
runs-on: ubuntu-latest
env:
NPM_TOKEN_FLDV: ${{ secrets.NPM_TOKEN_FLDV }}
PAT_GPR_FLDV: ${{ secrets.PAT_GPR_FLDV }}
strategy:
matrix:
node: ['15', '16']
steps:
- name: Checkout branch
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- name: Setup Node ${{ matrix.node }} environment
uses: actions/setup-node@v2
with:
always-auth: true
cache: yarn
node-version: ${{ matrix.node }}
registry-url: 'https://npm.pkg.github.com'
scope: '@flex-development'
- name: Install dependencies
run: yarn
env:
NODE_AUTH_TOKEN: ${PAT_GPR_FLDV}
- name: Check code formatting
run: yarn check:format
- name: Check code style
run: yarn check:style --max-warnings 0
- name: Build project
run: yarn build
env:
NODE_OPTIONS: -r tsconfig-paths/register

0 comments on commit 30ebf2e

Please sign in to comment.