From b01d83e2898ee231f6959f46502b4280098a5051 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paulo=20Gon=C3=A7alves?= Date: Wed, 15 Jun 2022 14:54:16 -0300 Subject: [PATCH 1/2] Update serverest-provider.test.js --- __tests__/contract/serverest-provider.test.js | 1 + 1 file changed, 1 insertion(+) diff --git a/__tests__/contract/serverest-provider.test.js b/__tests__/contract/serverest-provider.test.js index 814504e..d782344 100644 --- a/__tests__/contract/serverest-provider.test.js +++ b/__tests__/contract/serverest-provider.test.js @@ -15,6 +15,7 @@ describe('API Pact test - Integration between \'Front\' and \'ServeRest - API Re afterEach(() => mockProvider.verify()); afterAll(() => mockProvider.finalize()); + describe('GET user by ID', () => { it('Should return with sucess search with existing user', async () => { const expectedUsuario = { From f8c3b5f3d401d3d6fc45f783f45e9111f26d432d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paulo=20Gon=C3=A7alves?= Date: Wed, 15 Jun 2022 14:59:21 -0300 Subject: [PATCH 2/2] fix ci --- .github/workflows/contract-testing.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/contract-testing.yml b/.github/workflows/contract-testing.yml index 380f08d..f15791f 100644 --- a/.github/workflows/contract-testing.yml +++ b/.github/workflows/contract-testing.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-18.04 steps: - name: Project checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Node.js Setup uses: actions/setup-node@v2 - name: Installation of Node.js dependencies @@ -21,6 +21,8 @@ jobs: - name: Run contract test run: npm run test:contract - run: docker pull pactfoundation/pact-cli:latest + - name: work around permission issue + run: git config --global --add safe.directory /home/runner/work/front/front - name: Publish contract test result run: | docker run --rm \