From ba321037739cad7bd8780aa94551c8e364744e86 Mon Sep 17 00:00:00 2001 From: Liren Tu Date: Thu, 15 Dec 2022 14:28:40 -0800 Subject: [PATCH 1/5] Add github action and stoat --- .github/workflows/ci.yaml | 40 +++++++++++++++++++++++++++++++++++++++ .stoat/config.yaml | 14 ++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 .github/workflows/ci.yaml create mode 100644 .stoat/config.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..37a3ff9 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,40 @@ +name: Continuous Integration + +on: + # Trigger the ci pipeline for every comment on the default branch or a pull request. + # The default branch for the sample repo is `master`. + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + ci: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up node and cache + uses: actions/setup-node@v3 + with: + node-version: '16.8.0' + cache: 'yarn' + + - name: Install dependencies + run: yarn install --frozen-lockfile --prefer-offline + + # This project has a `coverage` script that runs all the + # tests and merge all their coverage reports. + - name: Run tests and generate report + run: yarn coverage + + - name: Generate storybook + run: yarn build-storybook + + # Run the Stoat action to upload and host all the build outputs. + - name: Run stoat action + uses: stoat-dev/stoat-action@v0 + if: always() diff --git a/.stoat/config.yaml b/.stoat/config.yaml new file mode 100644 index 0000000..783711e --- /dev/null +++ b/.stoat/config.yaml @@ -0,0 +1,14 @@ +version: 1 +enabled: true +tasks: + merged-test-coverage: + static_hosting: + path: coverage/merged/lcov-report + storybook: + static_hosting: + path: storybook-static + cypress-video: + static_hosting: + path: cypress/videos/spec.js.mp4 + build-time: + job_runtime: From e7a937779e651c459888f122475fe9ed526edece Mon Sep 17 00:00:00 2001 From: Liren Tu Date: Thu, 15 Dec 2022 14:45:37 -0800 Subject: [PATCH 2/5] Add task names --- .stoat/config.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.stoat/config.yaml b/.stoat/config.yaml index 783711e..320f703 100644 --- a/.stoat/config.yaml +++ b/.stoat/config.yaml @@ -2,12 +2,18 @@ version: 1 enabled: true tasks: merged-test-coverage: + metadata: + name: Test coverage report static_hosting: path: coverage/merged/lcov-report storybook: + metadata: + name: Storybook static_hosting: path: storybook-static cypress-video: + metadata: + name: Cypress video static_hosting: path: cypress/videos/spec.js.mp4 build-time: From 11f1fc57db4a8392545437dfa517674f5daa1e0d Mon Sep 17 00:00:00 2001 From: jrhizor Date: Tue, 20 Dec 2022 20:38:08 -0800 Subject: [PATCH 3/5] upgrade to new config file version --- .stoat/config.yaml | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/.stoat/config.yaml b/.stoat/config.yaml index 320f703..5e81e9d 100644 --- a/.stoat/config.yaml +++ b/.stoat/config.yaml @@ -1,20 +1,18 @@ version: 1 enabled: true -tasks: - merged-test-coverage: - metadata: - name: Test coverage report - static_hosting: +plugins: + job_runtime: + enabled: true + static_hosting: + merged-test-coverage: + metadata: + name: Test coverage report path: coverage/merged/lcov-report - storybook: - metadata: - name: Storybook - static_hosting: + storybook: + metadata: + name: Storybook path: storybook-static - cypress-video: - metadata: - name: Cypress video - static_hosting: + cypress-video: + metadata: + name: Cypress video path: cypress/videos/spec.js.mp4 - build-time: - job_runtime: From 98b5b0cf12cee22791e4eb3286b4e2c4f8b1e89c Mon Sep 17 00:00:00 2001 From: jrhizor Date: Tue, 20 Dec 2022 20:38:26 -0800 Subject: [PATCH 4/5] re-run From 01f41c26598ea3eaaac8e0fac7966e9d54c84ada Mon Sep 17 00:00:00 2001 From: jrhizor Date: Thu, 22 Dec 2022 20:18:42 -0800 Subject: [PATCH 5/5] re-run