mirror of
https://github.com/SrIzan10/sern-cli.git
synced 2026-05-01 11:05:17 +00:00
39 lines
814 B
YAML
39 lines
814 B
YAML
name: Continuous Integration
|
|
|
|
on:
|
|
# Trigger the workflow on push or pull request,
|
|
# but only for the main branch
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request_target:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
run-linters:
|
|
name: Run linters
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Check out Git repository
|
|
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # tag=v3
|
|
with:
|
|
node-version: 17
|
|
|
|
# Prettier must be in `package.json`
|
|
- name: Install Node.js dependencies
|
|
run: npm i
|
|
|
|
- name: Run Prettier
|
|
run: npm run format
|
|
|
|
- name: Link Project
|
|
run: npm link
|
|
|
|
- name: Test Sern
|
|
run: sern
|