seepine 8672113ba3
Some checks failed
Gitea Actions Demo / setup (push) Successful in 34s
Gitea Actions Demo / Gitea-Actions (push) Failing after 36s
Gitea Actions Demo / build (push) Successful in 39s
Gitea Actions Demo / test (push) Successful in 41s
fix
2023-08-02 11:08:34 +08:00

59 lines
1.2 KiB
YAML

name: Gitea Actions Demo
on: [push]
jobs:
setup:
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
env:
RUNNER_TOOL_CACHE: /toolcache
outputs:
hash: ${{ steps.get-hash.outputs.hash }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Yarn install
uses: ./.gitea/actions/yarn-install
test:
needs: setup
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
env:
RUNNER_TOOL_CACHE: /toolcache
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Yarn install
uses: ./.gitea/actions/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
env:
RUNNER_TOOL_CACHE: /toolcache
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Yarn install
uses: ./.gitea/actions/yarn-install
- name: Eslint Test
run: npx eslint --ext ".vue,.js,.jsx,.ts,.tsx"