pbw-explore/.github/workflows/test.yml

34 řádky
726 B
YAML
Surový Normální zobrazení Historie

2023-01-28 20:09:31 +01:00
name: Test build
on:
2023-01-28 20:13:52 +01:00
push:
branches:
- '*'
2023-01-28 20:22:30 +01:00
- '!main'
2023-01-28 20:09:31 +01:00
pull_request:
jobs:
2023-01-28 20:18:15 +01:00
test:
2023-01-28 20:09:31 +01:00
runs-on: ubuntu-22.04
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v3
with:
2023-01-30 04:04:13 +01:00
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
2023-01-28 20:09:31 +01:00
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm ci
- run: rm src/lib/data.json && wget -O src/lib/data.json https://data.prgblockweek.com/23/index.json
- name: Build
2023-01-30 04:04:13 +01:00
run: npm run build