|
|
|
@ -8,10 +8,13 @@ on:
|
|
|
|
|
branches:
|
|
|
|
|
- master
|
|
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
|
checks: write
|
|
|
|
|
contents: write
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
test:
|
|
|
|
|
name: Lint & Test Build
|
|
|
|
|
## if: github.event_name == 'pull_request'
|
|
|
|
|
name: Test Build
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
container: node:18-alpine
|
|
|
|
|
steps:
|
|
|
|
@ -19,15 +22,6 @@ jobs:
|
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
- name: Install dependencies
|
|
|
|
|
run: yarn install
|
|
|
|
|
- name: Install git
|
|
|
|
|
run: apk add git
|
|
|
|
|
- name: Lint Action
|
|
|
|
|
uses: wearerequired/lint-action@v2
|
|
|
|
|
with:
|
|
|
|
|
eslint: true
|
|
|
|
|
prettier: true
|
|
|
|
|
xo: true
|
|
|
|
|
tsc: true
|
|
|
|
|
- name: Formatting
|
|
|
|
|
run: yarn format:check
|
|
|
|
|
- name: Build
|
|
|
|
|