添加 .gitea/workflows/multiple.yml
Some checks failed
Gitea Actions Demo / setup (push) Successful in 20s
Gitea Actions Demo / build (push) Failing after 3s
Gitea Actions Demo / build-test (push) Failing after 1s
Gitea Actions Demo / Gitea-Actions (push) Failing after 2m24s

This commit is contained in:
huanghs 2023-08-01 16:22:27 +08:00
parent fdb25af0f5
commit 4dc4567516

View File

@ -0,0 +1,39 @@
name: Gitea Actions Demo
on: [push]
jobs:
setup:
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
volumes:
- ubuntu_hostedtoolcache:/opt/hostedtoolcache
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Pnpm
uses: pnpm/action-setup@v2
with:
version: 7
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'pnpm'
- run: pnpm -v
- run: pnpm install
build:
needs: setup
runs-on: ubuntu-latest
steps:
- run: pnpm -v
- run: pnpm install
build-test:
needs: setup
runs-on: ubuntu-latest
steps:
- run: pnpm -v
- run: pnpm install