firq-dev-website/.forgejo/workflows/linting.yml

28 lines
791 B
YAML
Raw Normal View History

2024-10-26 14:14:10 +02:00
name: Linting and checking code
2024-10-26 14:16:28 +02:00
run-name: Linting and checking code
2023-12-21 00:16:39 +01:00
on:
push:
branches:
2024-07-19 22:52:15 +02:00
- '**'
2023-12-21 00:16:39 +01:00
jobs:
2024-07-20 15:59:15 +02:00
get-version:
runs-on: docker
steps:
- name: Checking Out Repository Code
uses: https://code.forgejo.org/actions/checkout@v3
2024-10-26 14:14:10 +02:00
- name: Get version from package.json
2024-07-20 15:59:15 +02:00
run: |
VERSION=$(npm pkg get version --workspaces=false | tr -d \")
echo "Version is: '$VERSION'";
2024-07-19 22:52:15 +02:00
astro-check:
2023-12-21 00:16:39 +01:00
runs-on: docker
2024-07-19 22:52:15 +02:00
container: forgejo.neshweb.net/ci-docker-images/node-alpine-git:latest
2023-12-21 00:16:39 +01:00
steps:
- name: Checkout source code
uses: https://code.forgejo.org/actions/checkout@v3
- name: Install packages
2024-07-19 22:52:15 +02:00
run: npm i
2023-12-21 00:16:39 +01:00
- name: Run astro check (linting + static analysis)
run: npm run astro check