Skip to content

Merge pull request #133 from fireattack/master #252

Merge pull request #133 from fireattack/master

Merge pull request #133 from fireattack/master #252

Workflow file for this run

name: Node CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16, 18]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
cache-dependency-path: npm-shrinkwrap.json
- name: npm install, build
run: |
npm ci
npm run build
node ./dist/index.js --version
env:
CI: true
prettier:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
cache-dependency-path: npm-shrinkwrap.json
- name: Checking code styles
run: |
npm ci
npm run lint
env:
CI: true