Skip to content

Commit

Permalink
Merge pull request #1159 from serlo/add-pacts
Browse files Browse the repository at this point in the history
feat: Add pact tests to github repo
  • Loading branch information
hugotiburtino authored Dec 1, 2023
2 parents 6606235 + 7ac84c6 commit 40638c2
Show file tree
Hide file tree
Showing 5 changed files with 4,948 additions and 37 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
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

0 comments on commit 40638c2

Please sign in to comment.