From 86a133d392b872f40928b3c9aeb298f9994db952 Mon Sep 17 00:00:00 2001 From: Marc Schmidt Date: Sat, 18 Nov 2023 17:38:46 +0100 Subject: [PATCH 1/2] build: setup CI build --- .github/workflows/build.yml | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..a3a183d --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,38 @@ +name: CI + +on: + workflow_dispatch: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4.1.1 + - name: Use Node.js 18.x + uses: actions/setup-node@v4.0.0 + with: + node-version: 18.x + - name: Setup pnpm + uses: pnpm/action-setup@v2.4.0 + with: + version: 8.6.12 + - name: Install + run: pnpm i + - name: Build + run: pnpm run build + - name: Lint + run: pnpm run lint + - name: Test + run: pnpm run test + env: + FORCE_COLOR: 1 + - name: Publish Unit Test Results + uses: EnricoMi/publish-unit-test-result-action@v1 + if: always() + with: + files: junit.xml From ed3890b0bc7a783930e7016e618337bc93aeafd2 Mon Sep 17 00:00:00 2001 From: Marc Schmidt Date: Sat, 18 Nov 2023 17:43:02 +0100 Subject: [PATCH 2/2] build: disable test result publish for now --- .github/workflows/build.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a3a183d..9cca995 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,8 +31,8 @@ jobs: run: pnpm run test env: FORCE_COLOR: 1 - - name: Publish Unit Test Results - uses: EnricoMi/publish-unit-test-result-action@v1 - if: always() - with: - files: junit.xml + # - name: Publish Unit Test Results + # uses: EnricoMi/publish-unit-test-result-action@v1 + # if: always() + # with: + # files: junit.xml