Skip to content

Commit

Permalink
Merge pull request #35889 from nextcloud/artonge/fix/checkout_branch_…
Browse files Browse the repository at this point in the history
…in_cypress_tests

Checkout current branch in cypress tests in CI
  • Loading branch information
artonge authored Dec 27, 2022
2 parents c31e0e3 + 7a73219 commit 30d2088
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

env:
APP_NAME: viewer
BRANCH: ${{ github.base_ref }}
BRANCH: ${{ github.ref }}
TESTING: true

jobs:
Expand All @@ -30,7 +30,7 @@ jobs:
- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
uses: actions/setup-node@v3
with:
cache: 'npm'
cache: "npm"
node-version: ${{ steps.versions.outputs.nodeVersion }}

- name: Set up npm ${{ steps.versions.outputs.npmVersion }}
Expand Down
3 changes: 3 additions & 0 deletions cypress/dockerNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ export const startNextcloud = async function(branch: string = 'master'): Promise
HostConfig: {
Binds: [],
},
Env: [
`BRANCH=${branch}`,
]
})
await container.start()

Expand Down

0 comments on commit 30d2088

Please sign in to comment.