Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
df4671bec1
|
||
|
|
9816569a3d |
No files matched your search
+11
-13
@@ -1,16 +1,14 @@
|
|||||||
version: 2.1
|
version: 2.1
|
||||||
# Build and test on CircleCI (as the other QRun-IO repos); GitHub Actions also
|
setup: true
|
||||||
# runs .github/workflows/ci.yml and publishes on version tags.
|
orbs:
|
||||||
jobs:
|
qqq-orb: kingsrook/qqq-orb@0.7.4
|
||||||
build:
|
|
||||||
docker:
|
|
||||||
- image: cimg/node:22.12
|
|
||||||
steps:
|
|
||||||
- checkout
|
|
||||||
- run: npm ci
|
|
||||||
- run: npm run build
|
|
||||||
- run: npm test
|
|
||||||
workflows:
|
workflows:
|
||||||
build:
|
setup:
|
||||||
jobs:
|
jobs:
|
||||||
- build
|
- qqq-orb/generate_pipeline:
|
||||||
|
orb_version: 0.7.4
|
||||||
|
filters:
|
||||||
|
branches:
|
||||||
|
ignore: automation/qbit-rc-pending
|
||||||
|
tags:
|
||||||
|
only: /.*/
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
name: ci
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
push:
|
|
||||||
branches: [main]
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version: 22
|
|
||||||
cache: npm
|
|
||||||
- run: npm ci
|
|
||||||
- name: Generated client is up to date with the vendored document
|
|
||||||
run: |
|
|
||||||
npm run generate
|
|
||||||
git diff --exit-code packages/ui-api-client/src/schema.ts
|
|
||||||
- run: npm run build
|
|
||||||
- run: npm test
|
|
||||||
- name: Mock server smoke test (Prism on the merged document)
|
|
||||||
run: |
|
|
||||||
npx prism mock --port 4010 packages/ui-api-client/openapi/qqq-v1.json > prism.log 2>&1 &
|
|
||||||
for i in $(seq 1 30); do curl -fsS http://127.0.0.1:4010/qqq/v1/version && break; sleep 1; done
|
|
||||||
curl -fsS http://127.0.0.1:4010/qqq/v1/metaData/authentication
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
name: publish
|
|
||||||
# Publishes the three packages to GitHub Packages (npm.pkg.github.com, scope @qrun-io)
|
|
||||||
# when a version tag (v*) is pushed. The tag must match the client package version.
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
tags: ['v*']
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
packages: write
|
|
||||||
jobs:
|
|
||||||
publish:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version: 22
|
|
||||||
registry-url: https://npm.pkg.github.com
|
|
||||||
scope: '@qrun-io'
|
|
||||||
- run: npm ci
|
|
||||||
- run: npm run build
|
|
||||||
- run: npm test
|
|
||||||
- name: Tag matches the client version
|
|
||||||
run: test "v$(node -p "require('./packages/ui-api-client/package.json').version")" = "${GITHUB_REF_NAME}"
|
|
||||||
- run: npm publish -w @qrun-io/qqq-ui-api-client --tag rc
|
|
||||||
env:
|
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
- run: npm publish -w @qrun-io/qqq-ui-api-conformance --tag rc
|
|
||||||
env:
|
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
- run: npm publish -w @qrun-io/qqq-cli --tag rc
|
|
||||||
env:
|
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
profile: cli
|
||||||
|
orb_version: 0.7.4
|
||||||
|
default_branch: main
|
||||||
|
publish:
|
||||||
|
release: true
|
||||||
|
publish_context: qqq-maven-registry-credentials
|
||||||
Reference in new issue
Block a user