demo/.gitea/workflows/Scan.yaml

25 lines
588 B
YAML
Raw Permalink Normal View History

2024-05-02 16:45:05 -04:00
name: Testing with devbox
on: push
2024-05-02 16:48:23 -04:00
env:
# DOCKER_REGISTRY: docker.io
# DOCKER_USERNAME: softyouling
# 此处可修改为你任意 docker 镜像仓库地址和用户名
2024-04-01 11:07:20 -04:00
2024-05-02 16:48:23 -04:00
DOMAIN: gitea.lntu.edu.cn
2024-04-01 11:07:20 -04:00
jobs:
2024-05-02 16:45:05 -04:00
test:
2024-04-01 11:07:20 -04:00
runs-on: ubuntu-latest
steps:
2024-05-02 16:54:02 -04:00
- name: 🔎拉取代码
uses: https://${{ env.DOMAIN }}/actions/checkout@v4
2024-05-02 16:45:05 -04:00
2024-05-02 16:54:02 -04:00
- name: 🐬安装devbox
2024-05-02 16:48:23 -04:00
uses: https://${{ env.DOMAIN }}/actions/devbox-install-action@v0.9.0
2024-05-02 16:45:05 -04:00
- name: Run arbitrary commands
run: devbox run -- echo "done!"
- name: Run a script called test
run: devbox run test