test devbox

This commit is contained in:
千里走单骑 2024-05-03 04:45:05 +08:00
parent 6f8d0ccb1a
commit ff99259c55
1 changed files with 14 additions and 21 deletions
.gitea/workflows

View File

@ -1,25 +1,18 @@
on:
push:
# branches:
# - main
tags:
- v*
pull_request:
types: [opened, synchronize, reopened]
name: Testing with devbox
on: push
name: SonarQube Scan
jobs:
sonarqube:
name: SonarQube Trigger
test:
runs-on: ubuntu-latest
steps:
- name: Checking out
uses: actions/checkout@v4
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
- name: SonarQube Scan
uses: kitabisa/sonarqube-action@v1.2.0
with:
host: ${{ secrets.SONARQUBE_HOST }}
login: ${{ secrets.SONARQUBE_TOKEN }}
- uses: actions/checkout@v3
- name: Install devbox
uses: jetify-com/devbox-install-action@v0.9.0
- name: Run arbitrary commands
run: devbox run -- echo "done!"
- name: Run a script called test
run: devbox run test