diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..5fefada --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,40 @@ +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: Setup Hugo + uses: peaceiris/actions-hugo@v3 + with: + hugo-version: '0.128.1' + extended: true + + - 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