Skip to content

Commit

Permalink
adds workflow files #7
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeenciu committed Jul 8, 2023
1 parent e7ebd81 commit 334ba89
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Build and deploy
on:
pull_request:
types:
- "closed"
branches:
- "master"

jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: nrwl/nx-set-shas@v3
- run: npm ci

- run: npx nx format:check
- run: npx nx affected -t lint --parallel=3
- run: npx nx affected -t pretest --parallel=3
- run: npx nx affected -t test --parallel=3 --configuration=ci
- run: npx nx affected -t posttest --parallel=3
- run: npx nx affected -t build --parallel=3
21 changes: 21 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Run on PR
on:
pull_request:


jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: nrwl/nx-set-shas@v3
- run: npm ci

- run: npx nx format:check
- run: npx nx affected -t lint --parallel=3
- run: npx nx affected -t pretest --parallel=3
- run: npx nx affected -t test --parallel=3 --configuration=ci
- run: npx nx affected -t posttest --parallel=3
- run: npx nx affected -t build --parallel=3

0 comments on commit 334ba89

Please sign in to comment.