firq-dev-website/.forgejo/workflows/linting.yml
Firq 49f270974f
All checks were successful
Linting and checking code / get-version (push) Successful in 2s
Linting and checking code / astro-check (push) Successful in 13s
runname?
2024-10-26 14:16:28 +02:00

27 lines
791 B
YAML

name: Linting and checking code
run-name: Linting and checking code
on:
push:
branches:
- '**'
jobs:
get-version:
runs-on: docker
steps:
- name: Checking Out Repository Code
uses: https://code.forgejo.org/actions/checkout@v3
- name: Get version from package.json
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