Skip to content

Commit

Permalink
Refactor Workflow setup
Browse files Browse the repository at this point in the history
  • Loading branch information
dmohns committed Aug 22, 2024
1 parent f11f270 commit 0ca5afa
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 28 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/check-generic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,25 @@ jobs:
name: Run editorconfig-checker
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/checkout@v4

- name: Run editorconfig-checker
run: docker run --rm --volume=$PWD:/check mstruebing/editorconfig-checker

markdownlint:
name: Run markdownlint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/checkout@v4

- name: Run markdownlint-cli2
uses: DavidAnson/markdownlint-cli2-action@v16

yamllint:
name: Run yamllint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/checkout@v4

- name: Run yamllint
run: yamllint .
23 changes: 1 addition & 22 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Check Code Quality and Tests
name: Check Code Quality

on:
push:
Expand Down Expand Up @@ -41,24 +41,3 @@ jobs:

- name: Run Prettier
run: npx prettier . --check

test:
name: Run Tests
runs-on: ubuntu-latest
needs:
- lint-eslint
- lint-prettier

steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ">=18.x"

- name: Install dependencies
run: npm install

- name: Run Tests
run: npm run test
28 changes: 28 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Tests

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
tests:
name: Run Tests
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ">=18.x"

- name: Install dependencies
run: npm install

- name: Run Tests
run: npm run test

0 comments on commit 0ca5afa

Please sign in to comment.