添加 .gitea/workflows/multiple.yml
This commit is contained in:
parent
fdb25af0f5
commit
4dc4567516
39
.gitea/workflows/multiple.yml
Normal file
39
.gitea/workflows/multiple.yml
Normal 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
|
Loading…
x
Reference in New Issue
Block a user