2023-12-20 23:16:39 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2024-07-19 20:52:15 +00:00
|
|
|
- '**'
|
2023-12-20 23:16:39 +00:00
|
|
|
|
|
|
|
jobs:
|
2024-07-20 13:59:15 +00:00
|
|
|
get-version:
|
|
|
|
runs-on: docker
|
|
|
|
steps:
|
|
|
|
- name: Checking Out Repository Code
|
|
|
|
uses: https://code.forgejo.org/actions/checkout@v3
|
|
|
|
- name: Check if Version in package.json matches Tag
|
|
|
|
run: |
|
|
|
|
VERSION=$(npm pkg get version --workspaces=false | tr -d \")
|
|
|
|
echo "Version is: '$VERSION'";
|
2024-07-19 20:52:15 +00:00
|
|
|
astro-check:
|
2023-12-20 23:16:39 +00:00
|
|
|
runs-on: docker
|
2024-07-19 20:52:15 +00:00
|
|
|
container: forgejo.neshweb.net/ci-docker-images/node-alpine-git:latest
|
2023-12-20 23:16:39 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout source code
|
|
|
|
uses: https://code.forgejo.org/actions/checkout@v3
|
|
|
|
- name: Install packages
|
2024-07-19 20:52:15 +00:00
|
|
|
run: npm i
|
2023-12-20 23:16:39 +00:00
|
|
|
- name: Run astro check (linting + static analysis)
|
|
|
|
run: npm run astro check
|
2024-10-22 17:29:01 +00:00
|
|
|
run-unlighthouse:
|
|
|
|
runs-on: docker
|
|
|
|
steps:
|
|
|
|
- name: Launch workflow
|
|
|
|
run: |
|
2024-10-22 17:32:22 +00:00
|
|
|
curl -X POST \
|
|
|
|
-H "Accept: application/json" \
|
2024-10-22 17:29:01 +00:00
|
|
|
-d '{"ref": "${GITHUB_REF_NAME}", "inputs": { "container_tag": "0.2.0-pre.13" }}' \
|
2024-10-22 17:34:29 +00:00
|
|
|
"${GITHUB_API_URL}/repos/${GITHUB_REPOSITORY}/actions/workflows/unlighthouse/dispatches?access_token={GITHUB_TOKEN}" -v
|