add yarn
All checks were successful
Gitea Actions Demo / Gitea-Actions (push) Successful in 14s

This commit is contained in:
seepine 2023-08-01 18:41:05 +08:00
parent 4dc4567516
commit cf9a47470f
4 changed files with 6710 additions and 20 deletions

View File

@ -1,39 +1,38 @@
name: Gitea Actions Demo
on: [push]
jobs:
setup:
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
volumes:
- ubuntu_hostedtoolcache:/opt/hostedtoolcache
env:
RUNNER_TOOL_CACHE: /toolcache
steps:
- name: Checkout
- name: Checkout
uses: actions/checkout@v3
- name: Setup Pnpm
uses: pnpm/action-setup@v2
with:
version: 7
fetch-depth: 1
- run: corepack enable
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'pnpm'
cache: 'yarn'
- name: Dependent installation
run: yarn install
test:
needs: setup
steps:
- run: yarn install
- 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
- run: yarn install

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
node_modules

5046
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

1644
yarn.lock Normal file

File diff suppressed because it is too large Load Diff