diff --git a/.github/actions/pnpm/action.yml b/.github/actions/pnpm/action.yml deleted file mode 100644 index 9d472515..00000000 --- a/.github/actions/pnpm/action.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: Setup node and pnpm -description: Setup node and install dependencies using pnpm -runs: - using: "composite" - steps: - - uses: pnpm/action-setup@v2.2.4 - with: - version: 7 - - uses: actions/setup-node@v3 - with: - cache: 'pnpm' - - name: 'Install dependencies' - shell: 'bash' - run: pnpm install diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 60af2e01..f2139fd7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,19 +20,14 @@ jobs: name: Install runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: ./.github/actions/pnpm - - - + - uses: wyvox/action@v1 lint: name: Lint runs-on: ubuntu-latest needs: [install_dependencies] steps: - - uses: actions/checkout@v3 - - uses: ./.github/actions/pnpm + - uses: wyvox/action@v1 - name: Lint run: pnpm lint @@ -44,8 +39,7 @@ jobs: timeout-minutes: 5 runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: ./.github/actions/pnpm + - uses: wyvox/action@v1 - uses: ./.github/actions/assert-build @@ -66,8 +60,7 @@ jobs: - typescript@4.9 steps: - - uses: actions/checkout@v3 - - uses: ./.github/actions/pnpm + - uses: wyvox/action@v1 - uses: ./.github/actions/download-built-package - name: 'Change TS to ${{ matrix.typescript-scenario }}' run: 'pnpm add --save-dev ${{ matrix.typescript-scenario}}' @@ -100,10 +93,8 @@ jobs: runs-on: ubuntu-latest needs: [build] steps: - - uses: actions/checkout@v3 - - uses: ./.github/actions/pnpm - - name: Install Dependencies (without lockfile) - run: rm pnpm-lock.yaml && pnpm install + - uses: wyvox/action@v1 + with: { pnpm-args: '--no-lockfile' } - uses: ./.github/actions/download-built-package - run: pnpm --filter test-app test:ember @@ -133,8 +124,7 @@ jobs: - "'ember-lts-4.8 + embroider-optimized'" steps: - - uses: actions/checkout@v3 - - uses: ./.github/actions/pnpm + - uses: wyvox/action@v1 - uses: ./.github/actions/download-built-package - name: Run Tests working-directory: ./test-app @@ -164,10 +154,7 @@ jobs: - try_scenarios steps: - - uses: actions/checkout@v3 - with: - persist-credentials: false - - uses: ./.github/actions/pnpm + - uses: wyvox/action@v1 - uses: ./.github/actions/download-built-package - name: Create Release Pull Request or Publish to npm id: changesets @@ -186,10 +173,7 @@ jobs: runs-on: ubuntu-latest needs: build steps: - - uses: actions/checkout@v3 - with: - persist-credentials: false - - uses: ./.github/actions/pnpm + - uses: wyvox/action@v1 - uses: ./.github/actions/download-built-package - run: pnpm glint working-directory: docs-app @@ -207,10 +191,7 @@ jobs: url: ${{ steps.publishStep.outputs.url }} env: ${{ steps.publishStep.outputs.environment }} steps: - - uses: actions/checkout@v3 - with: - persist-credentials: false - - uses: ./.github/actions/pnpm + - uses: wyvox/action@v1 - uses: ./.github/actions/download-built-package - run: pnpm build:docs - name: Publish to Cloudflare Pages @@ -230,10 +211,7 @@ jobs: runs-on: ubuntu-latest needs: PublishDocstoCloudflarePages steps: - - uses: actions/checkout@v3 - with: - persist-credentials: false - - uses: ./.github/actions/pnpm + - uses: wyvox/action@v1 - uses: ./.github/actions/download-built-package - uses: marocchino/sticky-pull-request-comment@v2 with: diff --git a/ci.yml b/ci.yml deleted file mode 100644 index ff5c2ce2..00000000 --- a/ci.yml +++ /dev/null @@ -1,69 +0,0 @@ -provider: github -template: "v2-addon" - -# --------------------- - -addon: './ember-headless-table' -testApp: './test-app' - -lint: - commits: true - cmd: 'pnpm lint' - -build: - run: 'pnpm build' - expect: | - index.js - index.js.map - index.d.ts - plugins/index.js - plugins/data-sorting/index.js - plugins/column-reordering/index.js - plugins/column-resizing/index.js - plugins/column-visibility/index.js - plugins/sticky-columns/index.js - test-support/index.js - -support: - ember-try: true - glint: true - typescript: - - typescript@4.5 - - typescript@4.6 - - typescript@4.7 - - typescript@4.8 - - typescript@4.9 - -extra: - - name: 'Typecheck Docs' - needs: ['build'] - steps: - - run: pnpm glint - working-directory: 'docs-app' - - - name: 'Publish Docs to Cloudflare Pages' - needs: ['build'] - permissions: - contents: read - deployments: write - steps: - - run: pnpm build:docs - - name: Publish to Cloudflare Pages - uses: cloudflare/pages-action@1 - with: - apiToken: ${{ secrets.UX_OSS_CLOUDFLARE_API_TOKEN }} - accountId: ${{ secrets.UX_OSS_CLOUDFLARE_ACCOUNT_ID }} - projectName: ember-headless-table - directory: ./docs-app/dist - gitHubToken: ${{ secrets.GITHUB_TOKEN }} - - - name: 'Post Preview URL as comment to PR' - needs: ['PublishDocstoCloudflarePages'] - steps: - - uses: marocchino/sticky-pull-request-comment@v2 - with: - message: |+ - ## Preview URLs - GH Env: ${{ needs.PublishDocstoCloudflarePages.outputs.environment }} - docs: ${{ needs.PublishDocstoCloudflarePages.outputs.url }} - api docs: ${{ needs.PublishDocstoCloudflarePages.outputs.url }}/api/modules.html