Skip to content

Commit

Permalink
- feature: added pr check
Browse files Browse the repository at this point in the history
  • Loading branch information
agallardol committed Jul 2, 2024
1 parent c8897b5 commit 27f9b67
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 2 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: PR Check

on:
pull_request:
branches: [main]

defaults:
run:
working-directory: ./

jobs:
check:
runs-on: ubuntu-22.04
environment: development
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node version
uses: actions/setup-node@v3
with:
node-version: 20.14.0
check-latest: false
registry-url: https://registry.npmjs.org
cache: 'npm'
cache-dependency-path: package-lock.json

- name: Cache cargo assets
id: cache
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: build-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Install dependencies
run: |
npm cache verify
npm ci --no-audit --prefer-offline
- name: Run NX publish
run: npx nx run-many -t lint,test --verbose
4 changes: 2 additions & 2 deletions .github/workflows/release-development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ defaults:

jobs:
prebuild:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
outputs:
version: ${{ steps.package-version.outputs.version }}
steps:
Expand All @@ -25,7 +25,7 @@ jobs:

publish-libraries:
needs: prebuild
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
environment: development
steps:
- name: Check out repository
Expand Down

0 comments on commit 27f9b67

Please sign in to comment.