mirror of
https://github.com/myles/awesome-static-generators.git
synced 2025-08-07 06:36:32 +02:00
👷 Fixed the CI system.
This commit is contained in:
46
.github/workflows/ci.yml
vendored
46
.github/workflows/ci.yml
vendored
@@ -1,24 +1,38 @@
|
|||||||
name: CI
|
name: ci
|
||||||
|
|
||||||
on: [push]
|
"on":
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
ci:
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node-version: [12.x]
|
os: [ubuntu-latest]
|
||||||
|
node: [16]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: Checkout 🛎
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
id: checkout
|
||||||
uses: actions/setup-node@v1
|
uses: actions/checkout@master
|
||||||
with:
|
|
||||||
node-version: ${{ matrix.node-version }}
|
- name: Setup node env 🏗
|
||||||
- run: npm install
|
id: setup-node
|
||||||
- run: npm install -g remark-cli
|
uses: actions/setup-node@v3
|
||||||
- run: npm lint
|
with:
|
||||||
env:
|
node-version: ${{ matrix.node }}
|
||||||
CI: true
|
check-latest: true
|
||||||
|
|
||||||
|
- name: Install dependencies 👨🏻💻
|
||||||
|
id: install-npm-dependencies
|
||||||
|
run: npm install
|
||||||
|
|
||||||
|
- name: Run linter 👀
|
||||||
|
id: run-linter
|
||||||
|
run: npm run lint
|
||||||
|
Reference in New Issue
Block a user