huanghs
3e1ebfce98
Some checks failed
build / build (10.x) (push) Successful in 31s
build / build (16.x) (push) Successful in 7s
build / build (18.x) (push) Successful in 10s
Gitea Actions Demo / setup (push) Failing after 1h12m18s
Gitea Actions Demo / Gitea-Actions (push) Failing after 1h12m13s
Gitea Actions Demo / test (push) Has been cancelled
Gitea Actions Demo / build (push) Has been cancelled
103 lines
2.2 KiB
YAML
103 lines
2.2 KiB
YAML
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"
|