diff --git a/.circleci/config.yml b/.circleci/config.yml index 47562f4..db1f64a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,16 +1,14 @@ version: 2.1 -# Build and test on CircleCI (as the other QRun-IO repos); GitHub Actions also -# runs .github/workflows/ci.yml and publishes on version tags. -jobs: - build: - docker: - - image: cimg/node:22.12 - steps: - - checkout - - run: npm ci - - run: npm run build - - run: npm test +setup: true +orbs: + qqq-orb: kingsrook/qqq-orb@0.7.4 workflows: - build: + setup: jobs: - - build + - qqq-orb/generate_pipeline: + orb_version: 0.7.4 + filters: + branches: + ignore: automation/qbit-rc-pending + tags: + only: /.*/ diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index ccf9143..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -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 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index 59f698d..0000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -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 }} diff --git a/.qqq-ci.yml b/.qqq-ci.yml new file mode 100644 index 0000000..13eb4ff --- /dev/null +++ b/.qqq-ci.yml @@ -0,0 +1,6 @@ +profile: cli +orb_version: 0.7.4 +default_branch: main +publish: + release: true +publish_context: qqq-maven-registry-credentials