feature: add Github actions for basic CI pipeline

This commit is contained in:
Ondřej Synáček 2020-12-25 13:26:36 +01:00
parent 5415daebc5
commit 7436a9ec88
2 changed files with 46 additions and 0 deletions

21
.github/workflows/build.yml vendored Normal file
View File

@ -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

25
.github/workflows/main.yml vendored Normal file
View File

@ -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