mirror of
https://github.com/jambonz/next-static-site.git
synced 2026-07-04 19:21:55 +00:00
2c9655c93a
* 0.9.1 release notes * update preact * wip * wip * typo
36 lines
883 B
YAML
36 lines
883 B
YAML
name: github
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
pull_request:
|
|
branches:
|
|
- '**'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
test:
|
|
environment: Production
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: '20'
|
|
- name: Cache node modules
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: node_modules
|
|
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-node-
|
|
- name: Install Dependencies
|
|
run: yarn install
|
|
- name: Update Preact Render to String
|
|
run: yarn add preact-render-to-string@^6.5.0
|
|
- name: Build and Start Next.js
|
|
run: yarn build && (yarn start&) > /dev/null
|
|
- name: Run Tests
|
|
run: yarn test |