From 7173889f87347b264468a9d3e480036629498620 Mon Sep 17 00:00:00 2001 From: Jonatah Date: Thu, 7 Nov 2024 15:34:56 +1300 Subject: [PATCH 1/3] Run tests on PRs --- src/.github/workflows/test.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/.github/workflows/test.yml diff --git a/src/.github/workflows/test.yml b/src/.github/workflows/test.yml new file mode 100644 index 0000000..2f06ff9 --- /dev/null +++ b/src/.github/workflows/test.yml @@ -0,0 +1,34 @@ +name: Test + +on: + push: + branches: ["main"] + pull_request: + branches: [main] + +jobs: + test: + name: Test + runs-on: ${{matrix.os}} + defaults: + run: + shell: bash + strategy: + matrix: + include: + - build: linux + os: ubuntu-24.04 + steps: + - name: Checkout repository + uses: actions/checkout@v3 + with: + fetch-depth: 1 + + - name: Install + run: npm ci + + - name: Unit Test + run: npm run test + + - name: Integration Test + run: npm run test:integration \ No newline at end of file From c3484c9372fe8e2fc055362961b1efbb1eb0af33 Mon Sep 17 00:00:00 2001 From: Jonatah Date: Thu, 7 Nov 2024 15:36:26 +1300 Subject: [PATCH 2/3] Fixed file path --- {src/.github => .github}/workflows/test.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {src/.github => .github}/workflows/test.yml (100%) diff --git a/src/.github/workflows/test.yml b/.github/workflows/test.yml similarity index 100% rename from src/.github/workflows/test.yml rename to .github/workflows/test.yml From 62599278739e56d9328dd390799541d180b3d311 Mon Sep 17 00:00:00 2001 From: Jonatah Date: Thu, 28 Nov 2024 10:31:10 +1300 Subject: [PATCH 3/3] Install Hugo --- .github/workflows/test.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2f06ff9..5fefada 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,6 +24,12 @@ jobs: with: fetch-depth: 1 + - name: Setup Hugo + uses: peaceiris/actions-hugo@v3 + with: + hugo-version: '0.128.1' + extended: true + - name: Install run: npm ci