feature: add Github actions for basic CI pipeline
This commit is contained in:
parent
5415daebc5
commit
7436a9ec88
|
@ -0,0 +1,21 @@
|
|||
name: Deploy to firebase
|
||||
|
||||
on:
|
||||
workflow_dispatch
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2-beta
|
||||
with:
|
||||
node-version: 12.7
|
||||
- name: Deploy to Firebase
|
||||
timeout-minutes: 10
|
||||
run: |
|
||||
npm ci --no-color --no-progress
|
||||
npm run deploy:firebase
|
||||
env:
|
||||
CI: true
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
name: base
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
build_and_lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2-beta
|
||||
with:
|
||||
node-version: 12.7
|
||||
- name: Install, build and test
|
||||
timeout-minutes: 10
|
||||
run: |
|
||||
npm ci --no-color --no-progress
|
||||
npm run build
|
||||
npm run test
|
||||
env:
|
||||
CI: true
|
||||
|
Loading…
Reference in New Issue