59 lines
1.2 KiB
YAML
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"
|