diff --git a/.github/workflows/changesets.yml b/.github/workflows/changesets.yml index 859964b..d92f04e 100644 --- a/.github/workflows/changesets.yml +++ b/.github/workflows/changesets.yml @@ -1,7 +1,8 @@ name: Changesets on: push: - branches: main + branches: + - main workflow_dispatch: concurrency: @@ -54,7 +55,7 @@ jobs: steps: - name: Clone repository uses: actions/checkout@v4 - with: + with: submodules: 'recursive' - name: Install dependencies @@ -69,4 +70,4 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} # https://docs.npmjs.com/generating-provenance-statements - NPM_CONFIG_PROVENANCE: true \ No newline at end of file + NPM_CONFIG_PROVENANCE: true diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml new file mode 100644 index 0000000..38dc329 --- /dev/null +++ b/.github/workflows/pull-request.yml @@ -0,0 +1,13 @@ +name: Pull request +on: + pull_request: + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + +jobs: + verify: + name: Verify + uses: ./.github/workflows/verify.yml + secrets: inherit diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml deleted file mode 100644 index d3e0d5d..0000000 --- a/.github/workflows/tests.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: "Tests" - -on: - push: - branches: - - develop - pull_request: - branches: - - main - - develop - -concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} - cancel-in-progress: true - -jobs: - tests: - name: Test - runs-on: ubuntu-latest - timeout-minutes: 5 - - steps: - - name: Clone repository - uses: actions/checkout@v4 - with: - submodules: 'recursive' - - - name: Install dependencies - uses: ./.github/actions/install-dependencies - - - name: Run tests - run: bun run test:ci \ No newline at end of file