Skip to content

Commit

Permalink
Merge pull request #12 from CloudCannon/devops/run-test
Browse files Browse the repository at this point in the history
Run tests on PRs
  • Loading branch information
Tate-CC authored Dec 2, 2024
2 parents 485729a + 6259927 commit 871f8b2
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 871f8b2

Please sign in to comment.