-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(github-actions): add e2e test pipeline
- Loading branch information
1 parent
581d4c1
commit 258f9a9
Showing
8 changed files
with
69 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: 'E2E Tests' | ||
|
||
on: | ||
push: | ||
branches: [v3.x-bundle] | ||
paths-ignore: | ||
- '**/*.md' | ||
# pull_request: | ||
# branches: [ main ] | ||
# paths-ignore: | ||
# - '**/*.md' | ||
|
||
env: | ||
pnpm_version: 8 | ||
node_version: 20 | ||
|
||
jobs: | ||
get-matrix: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
matrix: ${{ steps.deploy-matrix.outputs.matrix }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Use Node.js ${{ env.node_version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{env.node_version }} | ||
- uses: pnpm/action-setup@v2 | ||
name: Install pnpm | ||
with: | ||
version: ${{ env.pnpm_version }} | ||
|
||
- run: pnpm install | ||
- name: Export the matrix for testing | ||
id: deploy-matrix | ||
run: nx run @infra/azure-functions:github-actions | ||
|
||
build: | ||
runs-on: ${{ matrix.os }} | ||
needs: get-matrix | ||
strategy: | ||
matrix: ${{fromJson(needs.get-matrix.outputs.matrix)}} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: oven-sh/setup-bun@v1 | ||
if: matrix.runtime == 'bun' | ||
|
||
- name: Use Node.js ${{ matrix.version }} | ||
if: matrix.runtime == 'node' | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.version }} | ||
|
||
- uses: pnpm/action-setup@v2 | ||
name: Install pnpm | ||
with: | ||
version: ${{ env.pnpm_version }} | ||
- run: pnpm install | ||
- run: pnpm build | ||
|
||
- name: Build the project | ||
run: nx run @examples/with-${{ matrix.runtime }}:build |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
examples/with-nodejs/package.json → examples/with-node/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters