Skip to content

Commit

Permalink
Consolidate workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
psvenk committed Nov 30, 2024
1 parent a074e6b commit d683365
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 72 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/black.yml

This file was deleted.

46 changes: 46 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]

env:
node-version: 16.x

jobs:
black:
name: Black
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: psf/black@stable
eslint:
name: ESLint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ env.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.node-version }}
cache: 'npm'
- name: Install node dependencies
run: npm install
- name: Run ESLint
run: npm run ci-eslint
prettier:
name: Prettier
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ env.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.node-version }}
cache: 'npm'
- name: Install node dependencies
run: npm install
- name: Run Prettier
run: npm run ci-prettier
28 changes: 0 additions & 28 deletions .github/workflows/eslint.yml

This file was deleted.

30 changes: 0 additions & 30 deletions .github/workflows/prettier.yml

This file was deleted.

0 comments on commit d683365

Please sign in to comment.