This commit is contained in:
parent
4dc4567516
commit
cf9a47470f
@ -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
|
||||
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
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
node_modules
|
5046
package-lock.json
generated
Normal file
5046
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user