更新 .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

This commit is contained in:
huanghs 2023-11-17 11:06:02 +08:00
parent 3e1ebfce98
commit f54124dd42

View File

@ -1,36 +1,48 @@
name: Gitea Actions Demo
on: [push]
jobs:
Gitea-Actions:
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
volumes:
- ubuntu_hostedtoolcache:/opt/hostedtoolcache
steps:
- name: Checkout
uses: actions/checkout@v3
- run: cat README.md
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: zulu
java-version: 11
- run: java -version
- 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
name: Gitea Actions Demo
on: [push]
jobs:
Gitea-Actions:
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
volumes:
- ubuntu_hostedtoolcache:/opt/hostedtoolcache
steps:
- name: Checkout
uses: actions/checkout@v3
- run: cat README.md
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: repo.io/${GITHUB_REPOSITORY}
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- run: |
echo ${{ steps.meta.outputs.labels }}
echo ${{ steps.meta.outputs.tags }}
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: zulu
java-version: 11
- run: java -version
- 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