40 Commits

Author SHA1 Message Date
254ea7020c 更新 .gitea/workflows/build-docker.yml
Some checks failed
Gitea Actions Demo / setup (push) Failing after 10s
Gitea Actions Demo / test (push) Has been skipped
Gitea Actions Demo / build (push) Has been skipped
Cache Npx / task (push) Successful in 32s
Gitea Actions Demo / build-docker (push) Failing after 21s
2024-10-14 09:37:18 +08:00
3ea050b93d 更新 .gitea/workflows/build-docker.yml
Some checks failed
Cache Npx / task (push) Successful in 29s
Gitea Actions Demo / build-docker (push) Failing after 38s
Gitea Actions Demo / setup (push) Failing after 58s
Gitea Actions Demo / test (push) Has been skipped
Gitea Actions Demo / build (push) Has been skipped
2024-10-14 09:36:04 +08:00
e87d65da2e 更新 .gitea/workflows/cache-npx.yml
Some checks failed
Gitea Actions Demo / build-docker (push) Successful in 27s
Gitea Actions Demo / setup (push) Failing after 53s
Gitea Actions Demo / test (push) Has been skipped
Gitea Actions Demo / build (push) Has been skipped
Cache Npx / task (push) Successful in 25s
2024-10-14 09:21:37 +08:00
e3b71682dd 更新 .gitea/workflows/cache-npx.yml
Some checks failed
Gitea Actions Demo / build-docker (push) Has been cancelled
Gitea Actions Demo / setup (push) Failing after 34s
Gitea Actions Demo / test (push) Has been skipped
Gitea Actions Demo / build (push) Has been skipped
Cache Npx / task (push) Successful in 24s
2024-10-10 10:54:14 +08:00
a3c1d49f5a 更新 .gitea/workflows/cache-npx.yml
Some checks failed
Gitea Actions Demo / build-docker (push) Has been cancelled
Gitea Actions Demo / test (push) Has been cancelled
Gitea Actions Demo / build (push) Has been cancelled
Gitea Actions Demo / setup (push) Has been cancelled
Cache Npx / task (push) Successful in 32s
2024-10-10 10:48:30 +08:00
1df9978f3c 更新 .gitea/workflows/cache-npx.yml
Some checks failed
Gitea Actions Demo / build-docker (push) Successful in 25s
Gitea Actions Demo / setup (push) Failing after 17s
Gitea Actions Demo / test (push) Has been skipped
Gitea Actions Demo / build (push) Has been skipped
Cache Npx / task (push) Successful in 1m43s
2024-08-17 17:25:22 +08:00
22b6d50e0a 更新 .gitea/workflows/cache-npx.yml
Some checks failed
Gitea Actions Demo / build-docker (push) Successful in 25s
Gitea Actions Demo / setup (push) Failing after 1m33s
Gitea Actions Demo / test (push) Has been skipped
Gitea Actions Demo / build (push) Has been skipped
Cache Npx / task (push) Failing after 52s
2024-08-17 17:22:11 +08:00
61b4d5772f 添加 dist/index.html
Some checks failed
Gitea Actions Demo / build-docker (push) Successful in 25s
Gitea Actions Demo / setup (push) Failing after 17s
Gitea Actions Demo / test (push) Has been skipped
Gitea Actions Demo / build (push) Has been skipped
Cache Npx / task (push) Successful in 26s
2024-08-17 17:18:05 +08:00
baf66dbea8 添加 docker/Dockerfile
Some checks failed
Gitea Actions Demo / test (push) Blocked by required conditions
Gitea Actions Demo / build (push) Blocked by required conditions
Gitea Actions Demo / build-docker (push) Has been cancelled
Cache Npx / task (push) Has been cancelled
Gitea Actions Demo / setup (push) Has been cancelled
2024-08-17 17:17:45 +08:00
8e37c423c1 更新 .gitea/workflows/cache-npx.yml
Some checks failed
Gitea Actions Demo / build-docker (push) Has been cancelled
Gitea Actions Demo / setup (push) Failing after 1m3s
Gitea Actions Demo / test (push) Has been skipped
Gitea Actions Demo / build (push) Has been skipped
Cache Npx / task (push) Successful in 28s
2024-07-30 14:52:55 +08:00
a9a1918974 更新 .gitea/workflows/cache-npx.yml
Some checks failed
Gitea Actions Demo / build-docker (push) Has been cancelled
Gitea Actions Demo / setup (push) Failing after 4m19s
Gitea Actions Demo / test (push) Has been skipped
Gitea Actions Demo / build (push) Has been skipped
Cache Npx / task (push) Successful in 23s
2024-07-30 14:39:22 +08:00
1ae4b8871c 更新 .gitea/workflows/cache-npx.yml
Some checks failed
Gitea Actions Demo / test (push) Blocked by required conditions
Gitea Actions Demo / build (push) Blocked by required conditions
Gitea Actions Demo / build-docker (push) Successful in 31s
Cache Npx / task (push) Has been cancelled
Gitea Actions Demo / setup (push) Has been cancelled
2024-07-30 14:36:41 +08:00
ef9ae80fc0 更新 .gitea/workflows/cache-npx.yml
Some checks failed
Gitea Actions Demo / build-docker (push) Successful in 1m6s
Gitea Actions Demo / setup (push) Failing after 4m14s
Gitea Actions Demo / test (push) Has been skipped
Gitea Actions Demo / build (push) Has been skipped
Cache Npx / task (push) Successful in 2h3m58s
2024-07-30 11:50:47 +08:00
769d728773 删除 .gitea/workflows/build.yaml
Some checks are pending
Gitea Actions Demo / build-docker (push) Waiting to run
Cache Npx / task (push) Waiting to run
Gitea Actions Demo / setup (push) Waiting to run
Gitea Actions Demo / test (push) Blocked by required conditions
Gitea Actions Demo / build (push) Blocked by required conditions
2024-07-30 11:50:34 +08:00
e02dadb933 删除 .gitea/workflows/multiple.yml
Some checks failed
Gitea Actions Demo / build-docker (push) Waiting to run
Cache Npx / task (push) Waiting to run
Gitea Actions Demo / setup (push) Waiting to run
Gitea Actions Demo / test (push) Blocked by required conditions
Gitea Actions Demo / build (push) Blocked by required conditions
Gitea Actions Demo / Gitea-Actions (push) Failing after 6m19s
2024-07-30 11:50:25 +08:00
9bfbd109d4 删除 .gitea/workflows/matrix-node.yaml
Some checks failed
Gitea Actions Demo / build-docker (push) Waiting to run
Gitea Actions Demo / Gitea-Actions (push) Waiting to run
Cache Npx / task (push) Waiting to run
Gitea Actions Demo / setup (push) Failing after 7m0s
Gitea Actions Demo / test (push) Has been skipped
Gitea Actions Demo / build (push) Has been skipped
2024-07-30 11:50:09 +08:00
0b081c37ad 更新 .gitea/workflows/cache-npx.yml
Some checks failed
Gitea Actions Demo / setup (push) Has been cancelled
Gitea Actions Demo / test (push) Has been cancelled
Gitea Actions Demo / build (push) Has been cancelled
build / build (10.x) (push) Has been cancelled
build / build (16.x) (push) Has been cancelled
build / build (18.x) (push) Has been cancelled
Gitea Actions Demo / Gitea-Actions (push) Has been cancelled
Gitea Actions Demo / build-docker (push) Has been cancelled
Cache Npx / task (push) Has been cancelled
2024-07-30 11:48:38 +08:00
69b8fe2ffc 更新 .gitea/workflows/cache-npx.yml
Some checks failed
Gitea Actions Demo / build-docker (push) Successful in 28s
Gitea Actions Demo / Gitea-Actions (push) Failing after 34s
build / build (10.x) (push) Successful in 1m16s
build / build (16.x) (push) Successful in 1m14s
build / build (18.x) (push) Successful in 1m28s
Gitea Actions Demo / test (push) Has been skipped
Gitea Actions Demo / build (push) Has been skipped
Gitea Actions Demo / setup (push) Failing after 7m38s
Cache Npx / task (push) Has been cancelled
2024-07-30 11:33:16 +08:00
25ac70ed5b 更新 .gitea/workflows/cache-npx.yml
Some checks failed
Gitea Actions Demo / setup (push) Has been cancelled
Gitea Actions Demo / test (push) Has been cancelled
Gitea Actions Demo / build (push) Has been cancelled
build / build (10.x) (push) Has been cancelled
build / build (16.x) (push) Has been cancelled
build / build (18.x) (push) Has been cancelled
Gitea Actions Demo / Gitea-Actions (push) Has been cancelled
Gitea Actions Demo / build-docker (push) Has been cancelled
Cache Npx / task (push) Failing after 16m34s
2024-07-30 11:09:09 +08:00
e9d4f081a7 更新 .gitea/workflows/cache-npx.yml
Some checks failed
Gitea Actions Demo / build-docker (push) Successful in 33s
build / build (16.x) (push) Successful in 1m21s
build / build (10.x) (push) Successful in 2m12s
build / build (18.x) (push) Has been cancelled
Gitea Actions Demo / test (push) Has been cancelled
Gitea Actions Demo / build (push) Has been cancelled
Gitea Actions Demo / setup (push) Has been cancelled
Gitea Actions Demo / Gitea-Actions (push) Has been cancelled
Cache Npx / task (push) Successful in 27s
2024-07-30 10:49:49 +08:00
3b7739e05e 添加 .npmrc
Some checks failed
Gitea Actions Demo / Gitea-Actions (push) Failing after 1m45s
Gitea Actions Demo / build-docker (push) Successful in 3m2s
build / build (10.x) (push) Successful in 1m1s
build / build (16.x) (push) Successful in 1m46s
build / build (18.x) (push) Successful in 1m35s
Gitea Actions Demo / test (push) Has been skipped
Gitea Actions Demo / build (push) Has been skipped
Gitea Actions Demo / setup (push) Failing after 5m42s
Cache Npx / task (push) Failing after 4m17s
2024-07-30 10:39:41 +08:00
10f43c6526 添加 .gitea/workflows/cache-npx.yml
Some checks failed
Gitea Actions Demo / setup (push) Waiting to run
Gitea Actions Demo / test (push) Blocked by required conditions
Gitea Actions Demo / build (push) Blocked by required conditions
Gitea Actions Demo / build-docker (push) Successful in 25s
Gitea Actions Demo / Gitea-Actions (push) Failing after 1m15s
Cache Npx / task (push) Failing after 2m50s
build / build (10.x) (push) Has been cancelled
build / build (18.x) (push) Has been cancelled
build / build (16.x) (push) Has been cancelled
2024-07-30 10:35:31 +08:00
04c9d3a58b 添加 .gitea/workflows/pull_request.yml
Some checks failed
Gitea Actions Demo / setup (push) Has been cancelled
Gitea Actions Demo / test (push) Has been cancelled
Gitea Actions Demo / build (push) Has been cancelled
build / build (10.x) (push) Has been cancelled
build / build (16.x) (push) Has been cancelled
build / build (18.x) (push) Has been cancelled
Gitea Actions Demo / Gitea-Actions (push) Has been cancelled
Gitea Actions Demo / build-docker (push) Has been cancelled
2024-07-01 16:54:34 +08:00
4a04a065a6 添加 .gitea/workflows/pull_request_target.yml
Some checks failed
build / build (10.x) (push) Waiting to run
build / build (16.x) (push) Waiting to run
build / build (18.x) (push) Waiting to run
Gitea Actions Demo / setup (push) Waiting to run
Gitea Actions Demo / test (push) Blocked by required conditions
Gitea Actions Demo / build (push) Blocked by required conditions
Gitea Actions Demo / Gitea-Actions (push) Has been cancelled
Gitea Actions Demo / build-docker (push) Has been cancelled
2024-07-01 16:54:21 +08:00
b374e2fc6d 更新 .gitea/actions/action-docker-build-push/action.yml
Some checks failed
Gitea Actions Demo / build-docker (push) Successful in 28s
build / build (18.x) (push) Successful in 46s
Gitea Actions Demo / test (push) Has been skipped
Gitea Actions Demo / build (push) Has been skipped
Gitea Actions Demo / setup (push) Failing after 13s
Gitea Actions Demo / Gitea-Actions (push) Failing after 7m21s
build / build (16.x) (push) Failing after 7m13s
build / build (10.x) (push) Failing after 1h27m47s
2024-06-24 09:37:25 +08:00
1f238754ac 更新 .gitea/actions/action-docker-build-push/action.yml
Some checks failed
Gitea Actions Demo / setup (push) Waiting to run
Gitea Actions Demo / test (push) Blocked by required conditions
Gitea Actions Demo / build (push) Blocked by required conditions
Gitea Actions Demo / build-docker (push) Successful in 28s
Gitea Actions Demo / Gitea-Actions (push) Has been cancelled
build / build (18.x) (push) Has been cancelled
build / build (16.x) (push) Has been cancelled
build / build (10.x) (push) Has been cancelled
2024-06-24 09:36:18 +08:00
691a093f08 更新 .gitea/actions/action-docker-build-push/action.yml
Some checks failed
Gitea Actions Demo / setup (push) Waiting to run
Gitea Actions Demo / test (push) Blocked by required conditions
Gitea Actions Demo / build (push) Blocked by required conditions
Gitea Actions Demo / build-docker (push) Failing after 22s
build / build (10.x) (push) Has been cancelled
build / build (18.x) (push) Has been cancelled
build / build (16.x) (push) Has been cancelled
Gitea Actions Demo / Gitea-Actions (push) Has been cancelled
2024-06-24 09:35:12 +08:00
b2efccff05 更新 .gitea/actions/action-docker-build-push/action.yml
Some checks failed
Gitea Actions Demo / setup (push) Waiting to run
Gitea Actions Demo / test (push) Blocked by required conditions
Gitea Actions Demo / build (push) Blocked by required conditions
Gitea Actions Demo / build-docker (push) Failing after 7s
build / build (16.x) (push) Has been cancelled
build / build (18.x) (push) Has been cancelled
Gitea Actions Demo / Gitea-Actions (push) Has been cancelled
build / build (10.x) (push) Has been cancelled
2024-06-24 09:34:35 +08:00
2d3d7d3b9e 更新 .gitea/actions/action-docker-build-push/action.yml
Some checks failed
Gitea Actions Demo / setup (push) Waiting to run
Gitea Actions Demo / test (push) Blocked by required conditions
Gitea Actions Demo / build (push) Blocked by required conditions
Gitea Actions Demo / build-docker (push) Failing after 2s
build / build (16.x) (push) Has been cancelled
build / build (18.x) (push) Has been cancelled
Gitea Actions Demo / Gitea-Actions (push) Has been cancelled
build / build (10.x) (push) Has been cancelled
2024-06-24 09:33:27 +08:00
2e290ae6dd 更新 .gitea/workflows/build-docker.yml
Some checks failed
Gitea Actions Demo / setup (push) Waiting to run
Gitea Actions Demo / test (push) Blocked by required conditions
Gitea Actions Demo / build (push) Blocked by required conditions
Gitea Actions Demo / build-docker (push) Successful in 7s
build / build (16.x) (push) Has been cancelled
build / build (10.x) (push) Has been cancelled
Gitea Actions Demo / Gitea-Actions (push) Has been cancelled
build / build (18.x) (push) Has been cancelled
2024-06-24 09:32:25 +08:00
be1fea96db 更新 .gitea/actions/action-docker-build-push/action.yml
Some checks failed
build / build (18.x) (push) Waiting to run
Gitea Actions Demo / setup (push) Waiting to run
Gitea Actions Demo / test (push) Blocked by required conditions
Gitea Actions Demo / build (push) Blocked by required conditions
Gitea Actions Demo / build-docker (push) Failing after 6s
build / build (10.x) (push) Has been cancelled
Gitea Actions Demo / Gitea-Actions (push) Has been cancelled
build / build (16.x) (push) Has been cancelled
2024-06-24 09:31:54 +08:00
a0ffafb622 更新 .gitea/actions/action-docker-build-push/action.yml
Some checks failed
Gitea Actions Demo / test (push) Blocked by required conditions
Gitea Actions Demo / build (push) Blocked by required conditions
Gitea Actions Demo / build-docker (push) Failing after 6s
build / build (16.x) (push) Successful in 1m25s
build / build (10.x) (push) Has been cancelled
build / build (18.x) (push) Has been cancelled
Gitea Actions Demo / Gitea-Actions (push) Has been cancelled
Gitea Actions Demo / setup (push) Has been cancelled
2024-06-24 09:30:18 +08:00
64e514eadc 更新 .gitea/workflows/build-docker.yml
Some checks failed
Gitea Actions Demo / setup (push) Waiting to run
Gitea Actions Demo / test (push) Blocked by required conditions
Gitea Actions Demo / build (push) Blocked by required conditions
Gitea Actions Demo / build-docker (push) Failing after 7s
build / build (18.x) (push) Has been cancelled
build / build (16.x) (push) Has been cancelled
build / build (10.x) (push) Has been cancelled
Gitea Actions Demo / Gitea-Actions (push) Has been cancelled
2024-06-24 09:29:07 +08:00
c887293f4f 添加 .gitea/workflows/build-docker.yml
Some checks failed
build / build (18.x) (push) Has been cancelled
build / build (16.x) (push) Has been cancelled
build / build (10.x) (push) Has been cancelled
Gitea Actions Demo / Gitea-Actions (push) Has been cancelled
Gitea Actions Demo / test (push) Has been cancelled
Gitea Actions Demo / build (push) Has been cancelled
Gitea Actions Demo / setup (push) Has been cancelled
Gitea Actions Demo / build-docker (push) Failing after 4s
2024-06-24 09:26:19 +08:00
b09805f2e1 添加 .gitea/actions/action-docker-build-push/action.yml
Some checks failed
build / build (18.x) (push) Waiting to run
Gitea Actions Demo / setup (push) Waiting to run
Gitea Actions Demo / test (push) Blocked by required conditions
Gitea Actions Demo / build (push) Blocked by required conditions
build / build (16.x) (push) Has been cancelled
Gitea Actions Demo / Gitea-Actions (push) Has been cancelled
build / build (10.x) (push) Has been cancelled
2024-06-24 09:25:59 +08:00
aeb9b13404 更新 .gitea/issue_template/report_bug.yml
Some checks failed
build / build (10.x) (push) Successful in 1m46s
build / build (16.x) (push) Successful in 2m0s
Gitea Actions Demo / test (push) Has been skipped
Gitea Actions Demo / build (push) Has been skipped
Gitea Actions Demo / setup (push) Failing after 1m42s
build / build (18.x) (push) Successful in 41m11s
Gitea Actions Demo / Gitea-Actions (push) Failing after 1h11m21s
2024-05-22 16:17:46 +08:00
f561fe53c9 更新 .gitea/issue_template/report_bug.yml
Some checks failed
Gitea Actions Demo / setup (push) Waiting to run
Gitea Actions Demo / test (push) Blocked by required conditions
Gitea Actions Demo / build (push) Blocked by required conditions
build / build (10.x) (push) Has been cancelled
build / build (18.x) (push) Has been cancelled
build / build (16.x) (push) Has been cancelled
Gitea Actions Demo / Gitea-Actions (push) Has been cancelled
2024-05-22 16:15:12 +08:00
8446585354 更新 .gitea/issue_template/report_bug.yml
Some checks failed
Gitea Actions Demo / setup (push) Waiting to run
Gitea Actions Demo / test (push) Blocked by required conditions
Gitea Actions Demo / build (push) Blocked by required conditions
build / build (16.x) (push) Successful in 1m46s
build / build (18.x) (push) Has been cancelled
build / build (10.x) (push) Has been cancelled
Gitea Actions Demo / Gitea-Actions (push) Has been cancelled
2024-05-22 16:12:13 +08:00
b87bfef1f6 更新 .gitea/issue_template/report_bug.yml
Some checks failed
Gitea Actions Demo / Gitea-Actions (push) Failing after 1m58s
Gitea Actions Demo / test (push) Has been skipped
Gitea Actions Demo / build (push) Has been skipped
Gitea Actions Demo / setup (push) Has been cancelled
build / build (10.x) (push) Has been cancelled
build / build (16.x) (push) Has been cancelled
build / build (18.x) (push) Has been cancelled
2024-05-22 16:08:19 +08:00
ac8068a450 更新 .gitea/issue_template/report_bug.yml
Some checks failed
Gitea Actions Demo / setup (push) Waiting to run
Gitea Actions Demo / test (push) Blocked by required conditions
Gitea Actions Demo / build (push) Blocked by required conditions
build / build (10.x) (push) Has been cancelled
Gitea Actions Demo / Gitea-Actions (push) Has been cancelled
build / build (18.x) (push) Has been cancelled
build / build (16.x) (push) Has been cancelled
2024-05-22 16:04:26 +08:00
12 changed files with 146 additions and 223 deletions

View File

@@ -0,0 +1,23 @@
name: 'Docker build and push'
description: 'Setup docker, build image and push'
inputs:
password:
description: 'Password or personal access token used to log against the Docker registry'
required: false
runs:
using: 'composite'
steps:
- run: "echo a: Set up QEMU"
- run: |
sleep 10
echo 'sleep 10 end'
- run: "echo b: Login to DockerHub"
if: ${{ inputs.password != '' }}
- run: |
sleep 10
echo 'c: Set up Docker BuildX'

View File

@@ -1,59 +1,40 @@
name: Bug Report
about: File a bug report
title: "[Bug]: "
name: 推荐模板
about: 从推荐模板创建一个工单。
title: "应用: "
labels:
- bug
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report!
- type: input
id: contact
attributes:
label: Contact Details
description: How can we get in touch with you if we need more info?
placeholder: ex. email@example.com
validations:
required: false
- type: textarea
id: what-happened
attributes:
label: What happened?
description: Also tell us, what did you expect to happen?
placeholder: Tell us what you see!
value: "A bug happened!"
validations:
required: true
标题前方的 "应用" 请改为涉及的应用名称,且标题内容用一句话概括所描述情况,例如:"跟进: 修复跟进内容加密后emoji图标无法正常显示"
- type: dropdown
id: version
attributes:
label: Version
description: What version of our software are you running?
options:
- 1.0.2 (Default)
- 1.0.3 (Edge)
validations:
required: true
- type: dropdown
id: browsers
attributes:
label: What browsers are you seeing the problem on?
label: 影响范围
multiple: true
options:
- Firefox
- Chrome
- Safari
- Microsoft Edge
- 微信小程序
- H5
- Web
- 服务端
- type: textarea
id: logs
attributes:
label: Relevant log output
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
render: shell
- type: checkboxes
id: terms
label: 描述
description: 请尽可能描述清楚例如问题描述、回显步骤、预期结果等,以免日后不能理解当初此工单内容表达的含义
placeholder: 请输入...
validations:
required: true
- type: textarea
attributes:
label: Code of Conduct
description: By submitting this issue, you agree to follow our [Code of Conduct](https://example.com)
options:
- label: I agree to follow this project's Code of Conduct
required: true
label: 截图
description: 操作截图、日志截图、相关代码截图等
placeholder: 请输入...
- type: input
attributes:
label: 提出人
description: 若问题非创建者提出,而是例如客户或用户提出,此时应记录真实提出人员
placeholder: 例如:张三

View File

@@ -0,0 +1,19 @@
name: Gitea Actions Demo
on: [push]
jobs:
build-docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Docker build push
uses: seepine/action-docker-build-push@v1
with:
push: false
file: ./docker/Dockerfile
platforms: linux/amd64,linux/arm64
- run: echo The end

View File

@@ -1,50 +0,0 @@
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: cat ${{ steps.meta.outputs.bake-file }}
- run: |
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

View File

@@ -0,0 +1,27 @@
name: Cache Npx
on: [push]
env:
DOCKER_REGISTRY: git.zgfxrc.cn
DOCKER_USERNAME: huanghs
jobs:
task:
runs-on: yfb-test
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Get npm cache dir
id: npm-cache-dir
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
- run: echo "${{ steps.npm-cache-dir.outputs.dir }}"
- name: Cache npx
uses: actions/cache@v3
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}/_npx
key: ${{ runner.os }}-npx-2
- run: npx cloc .

View File

@@ -1,23 +0,0 @@
name: build
on:
push
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x,16.x,18.x]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
# 安装依赖
- name: Node Version
run: node -v

View File

@@ -1,102 +0,0 @@
name: Gitea Actions Demo
on: [push]
jobs:
setup:
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Corepack enable
run: corepack enable
- name: Hash files
id: get-hash
uses: seepine/hash-files@v1
with:
patterns: |
**/package.json
**/yarn.lock
- name: Cache node modules
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-yarn-${{ steps.get-hash.outputs.hash }}
- name: Dependent installation
run: yarn install
test:
needs: setup
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Corepack enable
run: corepack enable
- name: Hash files
id: get-hash
uses: seepine/hash-files@v1
with:
patterns: |
**/package.json
**/yarn.lock
- name: Cache node modules
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-yarn-${{ steps.get-hash.outputs.hash }}
- name: Dependent installation
run: yarn install
- name: Eslint Test
run: npx eslint --ext ".vue,.js,.jsx,.ts,.tsx"
build:
needs: setup
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Corepack enable
run: corepack enable
- name: Hash files
id: get-hash
uses: seepine/hash-files@v1
with:
patterns: |
**/package.json
**/yarn.lock
- name: Cache node modules
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-yarn-${{ steps.get-hash.outputs.hash }}
- name: Dependent installation
run: yarn install
- name: Eslint Test
run: npx eslint --ext ".vue,.js,.jsx,.ts,.tsx"

View File

@@ -0,0 +1,16 @@
name: Test pull_request
on:
- pull_request
jobs:
setup:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 1
- run: |
cat README.md

View File

@@ -0,0 +1,16 @@
name: Test pull_request_target
on:
- pull_request_target
jobs:
setup:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 1
- run: |
cat README.md

1
.npmrc Normal file
View File

@@ -0,0 +1 @@
registry=https://registry.npmmirror.com

1
dist/index.html vendored Normal file
View File

@@ -0,0 +1 @@
Hello World!

14
docker/Dockerfile Normal file
View File

@@ -0,0 +1,14 @@
FROM nginx:1.25-alpine-slim
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories \
&& apk add --no-cache tzdata \
&& cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& apk del tzdata \
&& echo "*/30 * * * * ntpd -d -q -n -p ntp.aliyun.com" >> /etc/crontabs/root
ENV LISTEN_PORT=80\
SERVER_NAME=localhost\
PROXY_PASS=http://127.0.0.1
COPY ./dist /html
RUN chmod -R 755 /html