fasten-onprem/.github/workflows/ci.yaml

46 lines
1.2 KiB
YAML
Raw Normal View History

2022-09-26 19:42:33 -06:00
name: CI
# 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:
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
2024-06-06 09:10:24 -06:00
uses: codecov/codecov-action@v4
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
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 }}