Skip to content

Commit

Permalink
Merge pull request #4 from YOU54F/chore/reinstate_api
Browse files Browse the repository at this point in the history
Chore/reinstate api
  • Loading branch information
YOU54F authored Jun 12, 2024
2 parents e0de13f + ae246cc commit 7d6416d
Show file tree
Hide file tree
Showing 87 changed files with 9,165 additions and 6,021 deletions.
70 changes: 0 additions & 70 deletions .cirrus.yml

This file was deleted.

1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
{ "allow": ["constructors"] }
],
"import/prefer-default-export": "off",
"import/no-import-module-exports": "off",
"no-underscore-dangle": "off",
"class-methods-use-this": "off"
},
Expand Down
25 changes: 18 additions & 7 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,42 @@ on:
workflow_dispatch:

jobs:
build-and-test-osx:
runs-on: macos-latest
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node-version: [16.x,18.x,20.x]
os: [macos-latest,windows-latest,ubuntu-latest]
node-version: [
16.x,
18.x,
20.x
]
os: [
windows-2019,
macos-latest,
ubuntu-latest
]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: script/ci/build-and-test.sh
- run: script/ci/download-standalone-and-test.sh
if: runner.os != 'Windows'
env:
NODE_VERSION: ${{ matrix.node-version }}
PACT_BROKER_FEATURES: publish_pacts_using_old_api
- run: script/ci/build-and-test.sh

- run: script/ci/download-standalone-and-test.sh
if: runner.os == 'Windows'
shell: bash
env:
NODE_VERSION: ${{ matrix.node-version }}
# The windows build agent has trouble unpacking the tar for
# linux, so we only download windows binaries. This means
# we cannot release from Windows in CI.
ONLY_DOWNLOAD_PACT_FOR_WINDOWS: true
PACT_BROKER_FEATURES: publish_pacts_using_old_api
PACT_BROKER_FEATURES: publish_pacts_using_old_api
LIB_ROBUST_BASH_DEBUG: true
29 changes: 14 additions & 15 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,32 @@
name: Publish and release

on:
workflow_dispatch:
repository_dispatch:
types:
- release-triggered

jobs:
release:
runs-on: ubuntu-latest

env:
NODE_VERSION: 20

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v1

- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: 16
node-version: ${{ env.NODE_VERSION }}
registry-url: 'https://registry.npmjs.org'
- id: publish
run: script/ci/release.sh
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTOMATION_TOKEN}}
- name: Create Release
id: create_release
uses: actions/create-release@v1
- name: "release"
id: publish
run: script/ci/release.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: v${{ steps.publish.outputs.version }}
release_name: Release v${{ steps.publish.outputs.version }}
body: ${{steps.publish.outputs.notes}}
draft: false
prerelease: false
GITHUB_TOKEN: ${{ github.token }}
30 changes: 10 additions & 20 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ coverage
# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build

# Redis database dump
dump.rdb
Expand All @@ -44,24 +42,26 @@ src/**/**.d.ts
test/**/**.d.ts
bin/**/**.d.ts
**/*.d.ts
bin/*.js
src/index.js
src/pact-*.js
!test.js
src/**/**.js
test/**/**.js
bin/**/**.js
# *.js
# !test.js

*.js.map

# ts-node cache
ts-node-*

# pact standalone binaries
!standalone/__fixtures__/.keep
standalone/*.d.ts
standalone/*.js
standalone/*.js.map
# standalone/*
standalone/darwin*
standalone/linux*
standalone/windows*
standalone/*.d.ts
standalone/*.js
standalone/*.checksum
standalone/*.gz
standalone/README.md

# Folders created during testing
Expand All @@ -70,13 +70,3 @@ reports
tmp
.tmp
test/__testoutput__

# jest config
!jest.config.js

# mocha config
!.mocharc.js
!ts-node.js

# jest mocks
!__mocks__
Loading

0 comments on commit 7d6416d

Please sign in to comment.