Workflow improvements
Some checks failed
/ astro-check (push) Failing after 43s

This commit is contained in:
Firq 2024-07-18 21:29:12 +02:00
parent 57cf29e71c
commit 89189da621
Signed by: Firq
GPG key ID: 3ACC61C8CEC83C20
7 changed files with 1360 additions and 1583 deletions

View file

@ -4,14 +4,30 @@ on:
- '[0-9]+\.[0-9]+\.[0-9]+-pre\.[0-9]+' - '[0-9]+\.[0-9]+\.[0-9]+-pre\.[0-9]+'
jobs: jobs:
checking: check-tag:
runs-on: docker runs-on: docker
container: node:lts 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=$(cat package.json | grep "version" | sed 's/.*://' | tr -d , | tr -d \" | tr -d " " )
if test $VERSION != "${{ github.ref_name }}"; then
echo "Expected Version is: '${{ github.ref_name }}' actual Version is: '$VERSION'";
exit 1
else
echo "Version is: '$VERSION'";
fi
checking:
needs: [ check-tag ]
runs-on: docker
container: node:22-alpine
steps: steps:
- name: Checkout source code - name: Checkout source code
uses: https://code.forgejo.org/actions/checkout@v3 uses: https://code.forgejo.org/actions/checkout@v3
- name: Install packages - name: Install packages
run: npm install run: npm i
- name: Run astro check (linting + static analysis) - name: Run astro check (linting + static analysis)
run: npm run astro check run: npm run astro check
@ -22,19 +38,19 @@ jobs:
steps: steps:
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub - name: Log into Docker Package Registry
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
registry: forgejo.neshweb.net registry: forgejo.neshweb.net
username: ${{ secrets.FORGEJO_USERNAME }} username: ${{ secrets.FORGEJO_USERNAME }}
password: ${{ secrets.FORGEJO_TOKEN }} password: ${{ secrets.FORGEJO_TOKEN }}
- name: Push to Package Registry - name: Build and push to Docker Package Registry
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
with: with:
push: true push: true
tags: forgejo.neshweb.net/firq/fgo-ta-com-website:${{ github.ref_name }}, forgejo.neshweb.net/firq/fgo-ta-com-website:preview tags: forgejo.neshweb.net/firq/fgo-ta-com-website:${{ github.ref_name }}, forgejo.neshweb.net/firq/fgo-ta-com-website:preview
publish: create-release:
needs: [ build-site ] needs: [ build-site ]
if: success() if: success()
runs-on: docker runs-on: docker

View file

@ -4,14 +4,30 @@ on:
- '[0-9]+\.[0-9]+\.[0-9]+' - '[0-9]+\.[0-9]+\.[0-9]+'
jobs: jobs:
checking: check-tag:
runs-on: docker runs-on: docker
container: node:lts 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=$(cat package.json | grep "version" | sed 's/.*://' | tr -d , | tr -d \" | tr -d " " )
if test $VERSION != "${{ github.ref_name }}"; then
echo "Expected Version is: '${{ github.ref_name }}' actual Version is: '$VERSION'";
exit 1
else
echo "Version is: '$VERSION'";
fi
checking:
needs: [ check-tag ]
runs-on: docker
container: node:22-alpine
steps: steps:
- name: Checkout source code - name: Checkout source code
uses: https://code.forgejo.org/actions/checkout@v3 uses: https://code.forgejo.org/actions/checkout@v3
- name: Install packages - name: Install packages
run: npm install run: npm i
- name: Run astro check (linting + static analysis) - name: Run astro check (linting + static analysis)
run: npm run astro check run: npm run astro check
@ -22,19 +38,19 @@ jobs:
steps: steps:
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub - name: Log into Docker Package Registry
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
registry: forgejo.neshweb.net registry: forgejo.neshweb.net
username: ${{ secrets.FORGEJO_USERNAME }} username: ${{ secrets.FORGEJO_USERNAME }}
password: ${{ secrets.FORGEJO_TOKEN }} password: ${{ secrets.FORGEJO_TOKEN }}
- name: Push to Package Registry - name: Build and push to Docker Package Registry
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
with: with:
push: true push: true
tags: forgejo.neshweb.net/firq/fgo-ta-com-website:${{ github.ref_name }}, forgejo.neshweb.net/firq/fgo-ta-com-website:latest tags: forgejo.neshweb.net/firq/fgo-ta-com-website:${{ github.ref_name }}, forgejo.neshweb.net/firq/fgo-ta-com-website:latest
release: create-release:
needs: [ build-site ] needs: [ build-site ]
if: success() if: success()
runs-on: docker runs-on: docker

View file

@ -4,13 +4,13 @@ on:
- '**' - '**'
jobs: jobs:
checking: astro-check:
runs-on: docker runs-on: docker
container: node:lts container: node:22-alpine
steps: steps:
- name: Checkout source code - name: Checkout source code
uses: https://code.forgejo.org/actions/checkout@v3 uses: https://code.forgejo.org/actions/checkout@v3
- name: Install packages - name: Install packages
run: npm install run: npm i
- name: Run astro check (linting + static analysis) - name: Run astro check (linting + static analysis)
run: npm run astro check run: npm run astro check

View file

@ -1,7 +1,6 @@
on: on:
push: push:
tags: tags:
- '[0-9]+\.[0-9]+\.[0-9]+-unlighthouse\.[0-9]+'
- '[0-9]+\.[0-9]+\.[0-9]+-ulh\.[0-9]+' - '[0-9]+\.[0-9]+\.[0-9]+-ulh\.[0-9]+'
jobs: jobs:

2852
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -10,16 +10,16 @@
"astro": "astro" "astro": "astro"
}, },
"dependencies": { "dependencies": {
"@astro-community/astro-embed-youtube": "^0.4.3", "@astro-community/astro-embed-youtube": "^0.5.2",
"@astrojs/check": "^0.5.10", "@astrojs/check": "^0.8.1",
"@astrojs/sitemap": "^3.1.4", "@astrojs/sitemap": "^3.1.6",
"@fontsource/work-sans": "^5.0.18", "@fontsource/work-sans": "^5.0.18",
"astro": "^4.7.0", "astro": "^4.11.5",
"astro-meta-tags": "^0.1.3", "astro-meta-tags": "^0.3.0",
"autoprefixer": "^10.4.16", "autoprefixer": "^10.4.19",
"iconoir": "^7.3.0", "iconoir": "^7.7.0",
"postcss-preset-env": "^9.3.0", "postcss-preset-env": "^9.6.0",
"typescript": "^5.3.3" "typescript": "^5.5.3"
}, },
"browserslist": [ "browserslist": [
"last 2 versions", "last 2 versions",

View file

@ -10,7 +10,7 @@ import SmallTitle from '../components/smallTitle.astro'
export interface Props { export interface Props {
collection: 'teslafest' | 'taInfoData' collection: 'teslafest' | 'taInfoData'
collectionKey: string collectionKey: string
baseurl: 'database' | 'teslafest' baseurl: string
} }
const { collection, collectionKey, baseurl } = Astro.props const { collection, collectionKey, baseurl } = Astro.props