Skip to content

Commit

Permalink
Merge pull request #196 from gruz0/ci/optimize-workflows
Browse files Browse the repository at this point in the history
Optimize CI workflows
  • Loading branch information
gruz0 authored Nov 27, 2024
2 parents 71454be + 343e343 commit 0ed7c4d
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: hadolint/hadolint-action@v1.5.0
- uses: hadolint/hadolint-action@v3.1.0
with:
dockerfile: Dockerfile

Expand Down
20 changes: 0 additions & 20 deletions .github/workflows/lint.yml

This file was deleted.

5 changes: 4 additions & 1 deletion .github/workflows/spell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@

name: Spell

on: [push, pull_request]
on:
pull_request:
branches:
- master

jobs:
codespell:
Expand Down
17 changes: 11 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
name: Tests
name: Lint and Tests

on: [push, pull_request]
on:
pull_request:
branches:
- master

jobs:
test:
lint_and_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -13,11 +16,13 @@ jobs:
node-version: 22.11.0
cache: npm

- run: npm install
- run: npm run test:coverage
- run: cp .env.example .env
- run: npm ci
- run: make lint
- run: make coverage

- name: Upload coverage report
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: coverage/lcov-report
Expand Down

0 comments on commit 0ed7c4d

Please sign in to comment.