firq-dev-website/.forgejo/workflows/linting.yml
Firq 014ea40dce
All checks were successful
/ get-version (push) Successful in 2s
/ run-unlighthouse (push) Successful in 0s
/ astro-check (push) Successful in 13s
WHHAT THE ACTUAL FUCK IS WRONG WITH THOSE *******************
2024-10-22 19:46:48 +02:00

35 lines
1.1 KiB
YAML

on:
push:
branches:
- '**'
jobs:
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'";
astro-check:
runs-on: docker
container: forgejo.neshweb.net/ci-docker-images/node-alpine-git:latest
steps:
- name: Checkout source code
uses: https://code.forgejo.org/actions/checkout@v3
- name: Install packages
run: npm i
- name: Run astro check (linting + static analysis)
run: npm run astro check
run-unlighthouse:
runs-on: docker
steps:
- name: Launch workflow
run: |
curl -X POST \
-H "Content-Type: application/json" \
-H "Authorization: token ${GITHUB_TOKEN}" \
-d '{"ref": "${GITHUB_REF_NAME}", "inputs": { "container_tag": "0.2.0-pre.13" }}' \
"${GITHUB_API_URL}/repos/${GITHUB_REPOSITORY}/actions/workflows/unlighthouse.yml/dispatches" -v