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

feat: Add pact tests to github repo #1159

Merged
merged 13 commits into from
Dec 1, 2023
Merged
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
17 changes: 0 additions & 17 deletions .github/workflows/pact-broker.yml

This file was deleted.

12 changes: 0 additions & 12 deletions .github/workflows/pacts.yml

This file was deleted.

3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,6 @@ web_modules/
# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# Generated pact files
pacts/

# Transpiled code
dist/

Expand Down
Loading