|
11 | 11 | branches: |
12 | 12 | - master |
13 | 13 | - main |
| 14 | + types: [opened, synchronize, reopened] |
14 | 15 | jobs: |
15 | 16 | test_linux: |
16 | 17 | name: ${{ matrix.os }} |
17 | 18 | strategy: |
18 | 19 | fail-fast: false |
19 | 20 | matrix: |
20 | | - os: [ubuntu-20.04] |
21 | | - # os: [ubuntu-18.04, ubuntu-20.04] |
| 21 | + os: [ubuntu-22.04] |
| 22 | + # os: [ubuntu-20.04, ubuntu-22.04] |
22 | 23 | runs-on: ${{ matrix.os }} |
23 | 24 | steps: |
24 | | - - uses: actions/checkout@v2 |
25 | | - - uses: actions/setup-node@v1 |
| 25 | + - uses: actions/checkout@v4 |
| 26 | + - uses: actions/setup-node@v4 |
26 | 27 | with: |
27 | | - node-version: 16 |
28 | | - - uses: microsoft/playwright-github-action@v1 |
29 | | - - uses: actions/cache@v1 |
30 | | - with: |
31 | | - path: ~/.npm |
32 | | - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} |
33 | | - restore-keys: | |
34 | | - ${{ runner.os }}-node- |
35 | | - - name: Install dependencies |
36 | | - run: npm ci |
37 | | - - name: Run tests |
38 | | - run: npm test |
39 | | - test_win: |
40 | | - name: "Windows" |
41 | | - runs-on: windows-latest |
42 | | - steps: |
43 | | - - uses: actions/checkout@v2 |
44 | | - - uses: actions/setup-node@v1 |
45 | | - with: |
46 | | - node-version: 16 |
47 | | - - uses: microsoft/playwright-github-action@v1 |
48 | | - - uses: actions/cache@v1 |
49 | | - with: |
50 | | - path: ~/.npm |
51 | | - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} |
52 | | - restore-keys: | |
53 | | - ${{ runner.os }}-node- |
| 28 | + node-version: 18 |
| 29 | + cache: 'npm' |
54 | 30 | - name: Install dependencies |
55 | 31 | run: npm ci |
| 32 | + - name: Install Playwright Browsers |
| 33 | + run: npx playwright install --with-deps |
56 | 34 | - name: Run tests |
57 | 35 | run: npm test |
| 36 | + # test_win: |
| 37 | + # name: "Windows" |
| 38 | + # runs-on: windows-latest |
| 39 | + # steps: |
| 40 | + # - uses: actions/checkout@v2 |
| 41 | + # - uses: actions/setup-node@v1 |
| 42 | + # with: |
| 43 | + # node-version: 14 |
| 44 | + # - uses: microsoft/playwright-github-action@v1 |
| 45 | + # - uses: actions/cache@v1 |
| 46 | + # with: |
| 47 | + # path: ~/.npm |
| 48 | + # key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} |
| 49 | + # restore-keys: | |
| 50 | + # ${{ runner.os }}-node- |
| 51 | + # - name: Install dependencies |
| 52 | + # run: npm ci |
| 53 | + # - name: Run tests |
| 54 | + # run: npm test |
58 | 55 | tag: |
59 | 56 | name: "Publishing release" |
60 | 57 | if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' |
61 | 58 | needs: |
62 | 59 | - test_linux |
63 | | - - test_win |
64 | | - runs-on: ubuntu-latest |
| 60 | + # - test_win |
| 61 | + runs-on: ubuntu-22.04 |
65 | 62 | steps: |
66 | 63 | - name: Checkout code |
67 | | - uses: actions/checkout@v2 |
| 64 | + uses: actions/checkout@v4 |
68 | 65 | with: |
69 | 66 | fetch-depth: 0 |
70 | | - - uses: actions/setup-node@v2 |
| 67 | + - uses: actions/setup-node@v4 |
71 | 68 | with: |
72 | | - node-version: '16.x' |
| 69 | + node-version: '18.x' |
73 | 70 | registry-url: 'https://registry.npmjs.org' |
74 | | - - uses: actions/cache@v1 |
75 | | - with: |
76 | | - path: ~/.npm |
77 | | - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} |
78 | | - restore-keys: | |
79 | | - ${{ runner.os }}-node- |
| 71 | + cache: 'npm' |
80 | 72 | - run: npm install |
81 | 73 | - name: Read version from package.json |
82 | 74 | uses: culshaw/read-package-node-version-actions@v1 |
|
0 commit comments