ci: add parallel validation workflow
This commit is contained in:
1 parent
f0fe1bb4e9
commit
e567811dfb
1 file changed
+34
@@ -0,0 +1,34 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
env:
|
||||
REGISTRY: docker.lechner-systems.at
|
||||
IMAGE_NAME: lechnersystems/maintenance
|
||||
|
||||
jobs:
|
||||
javascript:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Check JavaScript syntax
|
||||
run: node --check script.js
|
||||
|
||||
docker:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Build Docker image
|
||||
run: docker build --build-arg APP_VERSION=${{ gitea.sha }} --build-arg VCS_REF=${{ gitea.sha }} --tag "$REGISTRY/$IMAGE_NAME:ci-${{ gitea.sha }}" .
|
||||
Reference in new issue
Block a user