-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (62 loc) · 1.99 KB
/
push-to-main-branch.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: push to main branch
on:
push:
branches:
- main
jobs:
build-and-test-extension:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
env:
NODE_ENV: development
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Install and Test extension/inverter 🔧
run: |
npm install
npm install --prefix ../shared
npm run esbuild
working-directory: ./extension
- name: Run headless test 🔧
uses: GabrielBB/[email protected]
with:
run: npm --prefix ./extension run test:coverage
- name: Deploy coverage 🚀
uses: codecov/codecov-action@v2
with:
files: ./coverage/lcov.info
fail_ci_if_error: true # (default = false)
verbose: true # (default = false)
- name: Prepare config for Testspace 🔧
uses: testspace-com/setup-testspace@v1
with:
domain: ${{ github.repository_owner }}
- name: Publish results to Testspace 🚀
run: testspace "[${{ github.workflow }} / ${{ matrix.os}}]./testspace/xunit.xml"
build-and-deploy-website:
runs-on: ubuntu-latest
env:
NODE_ENV: development
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Install and Build Wesbite 🔧
run: |
npm install
npm run compile
npm run build
working-directory: ./website
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: website/build # The folder the action should deploy from (source branch).
needs: build-and-test-extension # Wait for the build-and-test-extension to succeed