更新 .gitea/workflows/build.yaml
Some checks failed
build / build (10.x) (push) Successful in 16s
Gitea Actions Demo / Gitea-Actions (push) Failing after 23s
build / build (18.x) (push) Has been cancelled
build / build (16.x) (push) Has been cancelled
Gitea Actions Demo / setup (push) Successful in 7m56s
Gitea Actions Demo / test (push) Successful in 1m33s
Gitea Actions Demo / build (push) Successful in 34s
Some checks failed
build / build (10.x) (push) Successful in 16s
Gitea Actions Demo / Gitea-Actions (push) Failing after 23s
build / build (18.x) (push) Has been cancelled
build / build (16.x) (push) Has been cancelled
Gitea Actions Demo / setup (push) Successful in 7m56s
Gitea Actions Demo / test (push) Successful in 1m33s
Gitea Actions Demo / build (push) Successful in 34s
This commit is contained in:
parent
3e1ebfce98
commit
f54124dd42
@ -1,36 +1,48 @@
|
|||||||
name: Gitea Actions Demo
|
name: Gitea Actions Demo
|
||||||
on: [push]
|
on: [push]
|
||||||
jobs:
|
jobs:
|
||||||
Gitea-Actions:
|
Gitea-Actions:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: catthehacker/ubuntu:act-latest
|
image: catthehacker/ubuntu:act-latest
|
||||||
volumes:
|
volumes:
|
||||||
- ubuntu_hostedtoolcache:/opt/hostedtoolcache
|
- ubuntu_hostedtoolcache:/opt/hostedtoolcache
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- run: cat README.md
|
- run: cat README.md
|
||||||
|
|
||||||
- name: Setup Java
|
- name: Docker meta
|
||||||
uses: actions/setup-java@v3
|
id: meta
|
||||||
with:
|
uses: docker/metadata-action@v5
|
||||||
distribution: zulu
|
with:
|
||||||
java-version: 11
|
images: repo.io/${GITHUB_REPOSITORY}
|
||||||
|
tags: |
|
||||||
- run: java -version
|
type=semver,pattern={{version}}
|
||||||
|
type=semver,pattern={{major}}.{{minor}}
|
||||||
- name: Setup Pnpm
|
- run: |
|
||||||
uses: pnpm/action-setup@v2
|
echo ${{ steps.meta.outputs.labels }}
|
||||||
with:
|
echo ${{ steps.meta.outputs.tags }}
|
||||||
version: 7
|
|
||||||
|
- name: Setup Java
|
||||||
- name: Setup Node
|
uses: actions/setup-java@v3
|
||||||
uses: actions/setup-node@v3
|
with:
|
||||||
with:
|
distribution: zulu
|
||||||
node-version: 16
|
java-version: 11
|
||||||
cache: 'pnpm'
|
|
||||||
|
- run: java -version
|
||||||
- run: pnpm -v
|
|
||||||
|
- 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
|
- run: pnpm install
|
Loading…
x
Reference in New Issue
Block a user