ci: switch to actions

This commit is contained in:
Michael Kriese 2023-12-07 09:38:30 +01:00
parent 4a37911835
commit b5f5fe0725
No known key found for this signature in database
GPG key ID: B83F553A0724D44E
3 changed files with 54 additions and 0 deletions

18
.forgejo/workflows/ci.yml Normal file
View file

@ -0,0 +1,18 @@
name: ci
on:
pull_request:
# concurrency:
# group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
# cancel-in-progress: true
permissions:
contents: read
jobs:
validate:
uses: ./.forgejo/workflows/validate.yml
permissions:
contents: read
# checks: write

View file

@ -0,0 +1,35 @@
name: build
on:
workflow_call:
jobs:
prettier:
runs-on: k8s
steps:
- uses: actions/checkout@v4
with:
show-progress: false
- uses: actions/setup-node@v4
with:
node-version-file: '.node-version'
cache: 'npm'
- run: npm ci
- run: npm run prettier
- run: npx markdownlint-cli .
helm-lint:
runs-on: docker
container: quay.io/helmpack/chart-testing:v3.10.1
steps:
- uses: actions/checkout@v4
with:
show-progress: false
- run: helm plugin install --version v0.3.6 https://github.com/helm-unittest/helm-unittest
- run: helm dependency build
- run: helm lint
- run: helm template --debug gitea-helm .
- run: make unittests

1
.node-version Normal file
View file

@ -0,0 +1 @@
20.10.0