ci: switch to actions
This commit is contained in:
parent
4a37911835
commit
b5f5fe0725
3 changed files with 54 additions and 0 deletions
18
.forgejo/workflows/ci.yml
Normal file
18
.forgejo/workflows/ci.yml
Normal 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
|
35
.forgejo/workflows/validate.yml
Normal file
35
.forgejo/workflows/validate.yml
Normal 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
1
.node-version
Normal file
|
@ -0,0 +1 @@
|
||||||
|
20.10.0
|
Loading…
Reference in a new issue