-
-
Notifications
You must be signed in to change notification settings - Fork 23
34 lines (32 loc) · 1013 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Build
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
cache: 'yarn'
- name: Install
run: yarn
- name: Build
run: yarn build
- name: Test
run: yarn workspace creepyface test
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./packages/creepyface/coverage/lcov.info
base-path: ./packages/creepyface
- name: Build Docker Image
uses: 4lejandrito/build-docker-image-action@main
- name: Test Docker Image
run: yarn workspace creepyface-site test:docker
- name: Deploy Docker Image
if: github.ref == 'refs/heads/master'
uses: 4lejandrito/deploy-docker-image-action@main
with:
key: ${{ secrets.SSH_PRIVATE_KEY }}
prune-gh-pat: ${{ secrets.PRUNE_GITHUB_TOKEN }}