This commit is contained in:
parent
4dc4567516
commit
cf9a47470f
@ -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
|
- run: yarn install
|
||||||
|
|
||||||
build-test:
|
|
||||||
needs: setup
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- run: pnpm -v
|
|
||||||
- run: pnpm 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