43 lines
976 B
YAML
43 lines
976 B
YAML
name: Actions
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build:
|
|
name: Build Plugins
|
|
runs-on: docker
|
|
container: catthehacker/ubuntu:act-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 18
|
|
cache: 'yarn'
|
|
- name: Install dependencies
|
|
run: yarn install --frozen-lockfile
|
|
- name: Build plugins
|
|
run: yarn build
|
|
lint:
|
|
name: Lint Plugins
|
|
runs-on: docker
|
|
container: catthehacker/ubuntu:act-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 18
|
|
cache: 'yarn'
|
|
- name: Install dependencies
|
|
run: yarn install --frozen-lockfile
|
|
- name: Lint plugins
|
|
run: yarn lint
|