Skip to content

Commit

Permalink
Merge pull request #1160 from serlo/refactor-workflows
Browse files Browse the repository at this point in the history
chore: Refactor github workflows
  • Loading branch information
hugotiburtino authored Dec 1, 2023
2 parents b944a82 + 5cc84c7 commit 7ac84c6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 23 deletions.
26 changes: 21 additions & 5 deletions .github/workflows/js.yml → .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: JavaScript
name: CI Checks
on:
push:
branches:
Expand Down Expand Up @@ -42,13 +42,29 @@ jobs:
- run: yarn start:redis
- run: yarn test

test_pacts:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: serlo/configure-repositories/actions/setup-node@main
- run: yarn start:redis
- run: yarn pacts
- name: Check for uncommitted changes
run: |
if ! git diff --exit-code; then
echo "There are uncommitted changes in the repository."
exit 1
fi
codegen:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: serlo/configure-repositories/actions/setup-node@main
- run: yarn codegen
- id: changes
uses: UnicornGlobal/has-changes-action@v1.0.12
- run: echo "Outdated types. Please run \`yarn codegen\` and commit your changes." && exit 1
if: steps.changes.outputs.changed == 1
- name: Check for uncommitted changes
run: |
if ! git diff --exit-code; then
echo "There are uncommitted changes in the repository."
exit 1
fi
18 changes: 0 additions & 18 deletions .github/workflows/pacts.yml

This file was deleted.

0 comments on commit 7ac84c6

Please sign in to comment.