misc_pterodactyl-panel/.github/workflows/ui.yaml

58 lines
1 KiB
YAML
Raw Normal View History

2022-11-25 20:25:03 +00:00
name: UI
2022-03-28 19:13:27 +00:00
on:
push:
branches:
- "develop"
- "1.0-develop"
2022-03-28 19:13:27 +00:00
pull_request:
branches:
- "develop"
- "1.0-develop"
2022-03-28 19:13:27 +00:00
jobs:
lint:
name: Lint
runs-on: ubuntu-20.04
steps:
- name: Code checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Lint
run: yarn run lint
tests:
name: Tests
2022-03-28 19:13:27 +00:00
runs-on: ubuntu-20.04
strategy:
fail-fast: false
2022-03-28 19:13:27 +00:00
matrix:
node: [16, 18]
2022-03-28 19:13:27 +00:00
steps:
- name: Code checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: yarn
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build
run: yarn run build
2022-11-25 20:25:03 +00:00
- name: Tests
run: yarn run test