Skip to content

Commit

Permalink
GitHub workflow attempt #2
Browse files Browse the repository at this point in the history
  • Loading branch information
dannymcgee committed May 10, 2024
1 parent 4d0c4d2 commit 29eb67e
Showing 1 changed file with 21 additions and 12 deletions.
33 changes: 21 additions & 12 deletions .github/workflows/pr-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,22 @@ on:
- main

jobs:
checkout-repo:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Ensure unambiguous `main`
if: github.ref != 'refs/heads/main'
run: |
git remote set-branches origin main
git fetch --depth 1 origin main
git branch main origin/main
# checkout-repo:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - name: Ensure unambiguous `main`
# if: github.ref != 'refs/heads/main'
# run: |
# git remote set-branches origin main
# git fetch --depth 1 origin main
# git branch main origin/main

setup-rust:
runs-on: ubuntu-latest
needs: checkout-repo
# needs: checkout-repo
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
Expand All @@ -42,8 +43,9 @@ jobs:

setup-node:
runs-on: ubuntu-latest
needs: checkout-repo
# needs: checkout-repo
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
Expand All @@ -61,5 +63,12 @@ jobs:
- setup-rust
- setup-node
steps:
- uses: actions/checkout@v4
- name: Ensure unambiguous `main`
if: github.ref != 'refs/heads/main'
run: |
git remote set-branches origin main
git fetch --depth 1 origin main
git branch main origin/main
- name: nx affected
run: npx nx affected -t format lint test --configuration ci

0 comments on commit 29eb67e

Please sign in to comment.