Skip to content

Commit e99b435

Browse files
feat: adding ci
1 parent 03dc81d commit e99b435

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/pr.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: PR Created
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened]
6+
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: true
10+
11+
env:
12+
AWS_REGION: eu-west-2
13+
14+
permissions:
15+
id-token: write # this is required for AWS https://github.com/aws-actions/configure-aws-credentials#usage
16+
contents: read # this is required for Nx https://github.com/nrwl/nx-set-shas#permissions-in-v2
17+
actions: read # this is required for Nx https://github.com/nrwl/nx-set-shas#permissions-in-v2
18+
19+
defaults:
20+
run:
21+
shell: bash
22+
23+
jobs:
24+
run-tests:
25+
name: Deploy and Run Tests
26+
runs-on: ubuntu-latest
27+
timeout-minutes: 30
28+
steps:
29+
- uses: actions/checkout@v3
30+
with:
31+
ref: ${{ github.event.pull_request.head.sha }}
32+
- uses: pnpm/action-setup@v2
33+
with:
34+
version: 7.27.0
35+
- name: Setup Node.js
36+
id: setup-node
37+
uses: actions/setup-node@v3
38+
with:
39+
cache: "pnpm"
40+
- name: Install Top Level Dependencies
41+
run: pnpm install --frozen-lockfile
42+
- name: "🧪 Test unit and integration"
43+
run: pnpm test --verbose
44+
- name: '🧪 Test linter'
45+
run: pnpm lint-test

0 commit comments

Comments
 (0)