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