Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Refactor github workflows #1160

Merged
merged 4 commits into from
Dec 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.