Skip to content

Commit

Permalink
workflow debug
Browse files Browse the repository at this point in the history
  • Loading branch information
tom2drum committed Feb 1, 2024
1 parent 3b27922 commit ed931d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,13 @@ jobs:
pw_affected_tests:
name: Resolve affected Playwright tests
runs-on: ubuntu-latest
needs: [ code_quality, envs_validation ]
# needs: [ code_quality, envs_validation ]
if: github.event_name == 'pull_request'
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 2
fetch-depth: 0

- name: Setup node
uses: actions/setup-node@v4
Expand All @@ -145,7 +145,7 @@ jobs:

pw_tests:
name: 'Playwright tests / Project: ${{ matrix.project }}'
needs: [ code_quality, envs_validation, pw_affected_tests ]
needs: [ pw_affected_tests ]
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.41.1-focal
Expand Down
3 changes: 2 additions & 1 deletion deploy/tools/affected-tests/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ function getFileDeps(filename) {
}

async function getChangedFiles() {
const files = execSync(`git diff --name-only main...$(git symbolic-ref --short HEAD)`)
// eslint-disable-next-line max-len
const files = execSync(`git diff --name-only origin/${ process.env.GITHUB_BASE_REF || 'main' } origin/${ process.env.GITHUB_HEAD_REF || '$(git branch --show-current)' } -- .`)
.toString()
.trim()
.split('\n')
Expand Down

0 comments on commit ed931d5

Please sign in to comment.