forked from EddieHubCommunity/good-first-issue-finder
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 1.12 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Tests
on:
push:
pull_request:
branches:
- main
jobs:
Tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install dependencies
run: npm ci
# - name: Get installed Playwright version
# id: playwright-version
# run: echo -n "::set-output name=version::$(npm ls @playwright/test --json | jq --raw-output '.dependencies["@playwright/test"].version')"
# - uses: actions/cache@v3
# id: playwright-cache
# with:
# path: '~/.cache/ms-playwright'
# key: '${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.version }}'
# restore-keys: |
# ${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.version }}
- name: Install Playwright's dependencies
# if: steps.playwright-cache.outputs.cache-hit != 'true'
run: npx playwright install --with-deps
- name: Run tests
run: npm run test