generated from PackagrIO/goweb-template
-
-
Notifications
You must be signed in to change notification settings - Fork 88
45 lines (45 loc) · 1.23 KB
/
ci.yaml
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
name: CI
# This workflow is triggered on pushes
on:
push:
branches: [ main, beta ]
# Publish semver tags as releases.
release:
types: [published]
jobs:
test:
uses: ./.github/workflows/development.yaml
test-coverage:
name: Test Coverage Upload
needs:
- test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download coverage reports
uses: actions/download-artifact@v3
with:
name: coverage
- name: Upload coverage reports
uses: codecov/codecov-action@v4
with:
files: ${{ github.workspace }}/backend-coverage.txt,${{ github.workspace }}/lcov.info
flags: unittests
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }} # required
verbose: true
storybook:
name: Storybook Upload
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: cd frontend && yarn install
- uses: chromaui/action@v1
with:
workingDir: frontend
buildScriptName: "build-storybook"
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}