Skip to content

Add CI

Add CI #11

Workflow file for this run

name: Lint
on:
pull_request:
branches:
- main
- feature/**
push:
branches:
- main
- feature/**
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
concurrency:
group: lint-{{ github.head_ref || github.ref }}
jobs:
pre_job:
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/[email protected]
with:
skip_after_successful_duplicate: 'true'
skip_after_failed_duplicate: 'true'
do_not_skip: '["workflow_dispatch", "schedule"]'
lint:
needs: pre_job
if: needs.pre_job.outputs.should_skip != 'true'
runs-on: ubuntu-latest
container: ghcr.io/scuffletv/build:0c6e1ff3a4f658977ac944d8b1352d455dfd1165
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: pnpm install -r
- name: Lint
run: mask lint