Skip to content

chore: remove husky and lint-staged #503

chore: remove husky and lint-staged

chore: remove husky and lint-staged #503

Workflow file for this run

name: CI
on:
push:
branches:
- main
- release/*
pull_request:
branches:
- main
- release/*
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
test-types:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Generate types
run: npm run generate-types-package
- name: Test types
run: npm run test:types
build-test:
strategy:
fail-fast: false
matrix:
node-version: [18.x, 20.x]
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{matrix.node-version}}
- name: Add msbuild to PATH
if: runner.os == 'Windows'
uses: microsoft/setup-msbuild@v1.1
- name: Ensure that bundle git parsing functionality works
run: |
git config --global user.email "ci@nodecg.dev"
git config --global user.name "NodeCG Bot"
- name: Restore Chromium dependency cache (Linux)
uses: actions/cache@v3
with:
path: |
/home/runner/.cache/puppeteer
key: chromium-${{ runner.os }}-${{ matrix.node-version }}-${{ hashFiles('package-lock.json') }}
if: runner.os == 'Linux'
- name: Restore Chromium dependency cache (macOS)
uses: actions/cache@v3
with:
path: |
/Users/runner/.cache/puppeteer
key: chromium-${{ runner.os }}-${{ matrix.node-version }}-${{ hashFiles('package-lock.json') }}
if: runner.os == 'macOS'
- name: Restore Chromium dependency cache (Windows)
uses: actions/cache@v3
with:
path: |
C:\Users\runneradmin\.cache\puppeteer
key: chromium-${{ runner.os }}-${{ matrix.node-version }}-${{ hashFiles('package-lock.json') }}
if: runner.os == 'Windows'
- run: npm ci
- run: npm run build
- run: npm run test-coverage-ci
- if: runner.os == 'Linux' && matrix.node-version == '18.x'
uses: codecov/codecov-action@v3
dry-run-container-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/build-push-action@v5
with:
context: .
push: false