diff --git a/.github/workflows/redeploy-docs.yml b/.github/workflows/redeploy-docs.yml index 3263e9a..3f02a79 100644 --- a/.github/workflows/redeploy-docs.yml +++ b/.github/workflows/redeploy-docs.yml @@ -1,9 +1,9 @@ name: Redeploy Docs on: push: - branches: [master] + branches: [main] jobs: redeploy-docs: - uses: swup/.github/.github/workflows/redeploy-docs.yml@master + uses: swup/.github/.github/workflows/redeploy-docs.yml@main secrets: inherit diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml new file mode 100644 index 0000000..9855ff5 --- /dev/null +++ b/.github/workflows/unit-tests.yml @@ -0,0 +1,28 @@ +name: Unit tests + +on: + push: + branches: [master, main, next] + pull_request: + workflow_dispatch: + +jobs: + run-tests: + name: Run unit tests + runs-on: ubuntu-latest + timeout-minutes: 5 + + steps: + - name: Check out repo + uses: actions/checkout@v3 + + - name: Set up node + uses: actions/setup-node@v3 + with: + node-version: 18 + + - run: npm ci + - run: npm run build + + - name: Run tests + run: npm run test:unit diff --git a/.github/workflows/version-update.yml b/.github/workflows/version-update.yml index 6b67e54..9597c0e 100644 --- a/.github/workflows/version-update.yml +++ b/.github/workflows/version-update.yml @@ -28,7 +28,7 @@ jobs: run: npm --no-git-tag-version version ${{ inputs.segment }} - uses: peter-evans/create-pull-request@v4 with: - base: 'master' + base: 'main' branch: 'version/automated' title: 'Update package version (automated)' commit-message: 'Update package version'