Firq
c3dc83ff1d
All checks were successful
Linting and checking code / get-version (push) Successful in 2s
Linting and checking code / astro-check (push) Successful in 11s
Build and deploy preview site / check-tag (push) Successful in 2s
Build and deploy preview site / checking (push) Successful in 13s
Build and deploy preview site / build-site (push) Successful in 1m11s
Build and deploy preview site / run-unlighthouse (push) Successful in 0s
Build and deploy preview site / create-release (push) Successful in 5s
Build and deploy preview site / auto-deploy-dockge (push) Successful in 26s
27 lines
755 B
YAML
27 lines
755 B
YAML
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
|