backup-adapter CI #82
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: backup-adapter CI | |
on: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
# We need the full history for the commitlint task | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Install Task | |
uses: arduino/setup-task@v2 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install commitlint | |
run: | | |
npm install conventional-changelog-conventionalcommits | |
npm install commitlint@latest | |
npm install @commitlint/{config-conventional,cli} | |
- name: Validate PR commits with commitlint | |
run: npx commitlint --from origin/main --to HEAD --verbose | |
- name: Validate PR commits with commitlint2 | |
run: docker run --user $(id -u):$(id -g) -v $(pwd):/src -w /src commitlint/commitlint:19.3.1 --from origin/main --to HEAD | |
- name: Install Dagger | |
env: | |
# renovate: datasource=github-tags depName=dagger/dagger versioning=semver | |
DAGGER_VERSION: 0.11.9 | |
run: | | |
curl -L https://dl.dagger.io/dagger/install.sh | BIN_DIR=$HOME/.local/bin sh | |
- name: Run CI task | |
env: | |
COMMIT_LEN: ${{ github.event.pull_request.commits }} | |
run: | | |
task ci |