2022-09-26 19:42:33 -06:00
|
|
|
name: CI
|
2024-03-03 20:17:54 -07:00
|
|
|
# This workflow is triggered on pushes
|
2022-10-14 09:58:22 -06:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ main, beta ]
|
|
|
|
# Publish semver tags as releases.
|
2023-07-16 13:55:29 -06:00
|
|
|
release:
|
|
|
|
types: [published]
|
2022-09-26 19:42:33 -06:00
|
|
|
jobs:
|
2024-03-03 20:17:54 -07:00
|
|
|
test:
|
|
|
|
uses: ./.github/workflows/development.yaml
|
2022-10-14 09:51:34 -06:00
|
|
|
test-coverage:
|
|
|
|
name: Test Coverage Upload
|
|
|
|
needs:
|
2024-03-03 20:17:54 -07:00
|
|
|
- test
|
2022-10-14 09:51:34 -06:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2024-03-03 20:17:54 -07:00
|
|
|
uses: actions/checkout@v4
|
2022-10-14 09:51:34 -06:00
|
|
|
- name: Download coverage reports
|
|
|
|
uses: actions/download-artifact@v3
|
|
|
|
with:
|
|
|
|
name: coverage
|
|
|
|
- name: Upload coverage reports
|
2024-06-06 09:10:24 -06:00
|
|
|
uses: codecov/codecov-action@v4
|
2022-10-14 09:51:34 -06:00
|
|
|
with:
|
|
|
|
files: ${{ github.workspace }}/backend-coverage.txt,${{ github.workspace }}/lcov.info
|
|
|
|
flags: unittests
|
|
|
|
fail_ci_if_error: true
|
2024-06-06 09:10:24 -06:00
|
|
|
token: ${{ secrets.CODECOV_TOKEN }} # required
|
2022-10-14 09:51:34 -06:00
|
|
|
verbose: true
|
2023-07-08 08:43:30 -06:00
|
|
|
storybook:
|
|
|
|
name: Storybook Upload
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-03-03 20:17:54 -07:00
|
|
|
- uses: actions/checkout@v4
|
2023-07-08 08:43:30 -06:00
|
|
|
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 }}
|