Skip to content

Commit

Permalink
feat: fix cache issues
Browse files Browse the repository at this point in the history
  • Loading branch information
umpox committed Mar 21, 2022
1 parent 0c3524b commit b690d71
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:

# publish
- name: release
if: github.event_name == 'push'
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
**/.vscode
**/.vs
**/packages/web-performance/reports
**/packages/web-performance/.lighthouseci
**/packages/web-performance/.lighthouseci
1 change: 0 additions & 1 deletion packages/web-functionality/jest-puppeteer.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
module.exports = {
launch: {
headless: process.env.HEADLESS !== 'false',
product: 'chrome',
},
}
1 change: 0 additions & 1 deletion packages/web-functionality/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ module.exports = {
},
testMatch: ['<rootDir>/lib/**/*.test.js'],
testPathIgnorePatterns: ['<rootDir>/node_modules/'],
transformIgnorePatterns: ['<rootDir>/node_modules/'],
modulePathIgnorePatterns: ['<rootDir>/node_modules/'],
testResultsProcessor: 'jest-junit',
}
3 changes: 1 addition & 2 deletions packages/web-functionality/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@
},
"release": {
"branches": [
"main",
"tr/add-smoke-tests"
"main"
]
},
"publishConfig": {
Expand Down
5 changes: 4 additions & 1 deletion packages/web-functionality/src/smoke.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ describe('Smoke tests', () => {

it('successful runs a search', async () => {
// Update search input
await expect(page).toFill('.inputarea', 'repo:^github.com/sourcegraph/smoke-tests-test-repository$')
await expect(page).toFill(
'.test-query-input textarea',
'repo:^github.com/sourcegraph/smoke-tests-test-repository$'
)

// Click search button
await expect(page).toClick('.test-search-button')
Expand Down

0 comments on commit b690d71

Please sign in to comment.