Skip to content

Commit

Permalink
ci: update actions to use cache
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalets committed Mar 23, 2024
1 parent f9562d8 commit ebc51f5
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 10 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20
cache: 'npm'
- run: npm ci
- run: npm run lint
- run: npm run prettier
2 changes: 1 addition & 1 deletion .github/workflows/sponsors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
update-sponsors:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Update sponsors in README.md
uses: JamesIves/github-sponsors-readme-action@v1
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/test-win.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ jobs:
run:
shell: bash
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- run: npm ci
- run: npm install @cucumber/cucumber@${{ matrix.cucumberVersion }}
- run: npx playwright install --with-deps chromium
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,11 @@ jobs:
- playwrightVersion: '1.39'
cucumberVersion: '10'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'
- run: npm ci
- run: >
npm install
Expand Down
4 changes: 2 additions & 2 deletions test/reporter-cucumber-html/features/fixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ export const test = base.extend<{
setTestTimeout: [
async ({}, use, testInfo) => {
if (testInfo.title.includes('timeout')) {
// Increase timeout on CI.
// Don't decreese this timeout.
// Otherwise we get "test timeout" during initialization and it breaks tests
testInfo.setTimeout(process.env.CI ? 1000 : 500);
testInfo.setTimeout(1000);
}
await use();
},
Expand Down

0 comments on commit ebc51f5

Please sign in to comment.