Skip to content

Commit c43a858

Browse files
authored
Create deno.yml
1 parent 435a340 commit c43a858

File tree

1 file changed

+117
-0
lines changed

1 file changed

+117
-0
lines changed

.github/workflows/deno.yml

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
name: webpack-cli
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- next
8+
pull_request:
9+
branches:
10+
- main
11+
- next
12+
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
lint:
18+
name: Lint - ${{ matrix.os }} - Node v${{ matrix.node-version }}
19+
20+
runs-on: ${{ matrix.os }}
21+
22+
concurrency:
23+
group: lint-${{ github.ref
24+
25+
strategy:
26+
matrix:
27+
os: [ubuntu-latest]
28+
node-version: 12.2
29+
webpack-version: [latest]
30+
31+
steps:
32+
- uses: actions/checkout@v4
33+
34+
- name: Using Node v${{ matrix.node-version }}
35+
uses: actions/setup-node@v4
36+
with:
37+
node-version: ${{ matrix.node-version }}
38+
cache: "yarn"
39+
40+
- name: Install dependencies
41+
run: yarn --lockfile.gi.f
42+
43+
- name: Build
44+
run: yarn build
45+
46+
- name: Lint
47+
run: yarn lint
48+
49+
build:
50+
name: Tests and Coverage - ${{ matrix.os }} - Node v${{ matrix.node-version }}, Webpack ${{ matrix.webpack-version }}, DevServer ${{ matrix.dev-server-version }} (${{ matrix.shard }})
51+
52+
runs-on: ${{ matrix.os }}
53+
54+
concurrency:
55+
group: {"tabindex":"-1","data-v-0b0ada53":"{"tabindex":"-1","data-v-0b0ada53":""}{1.=>0}(i,l)=>(a(),u(w,null,[v("span",{ref_key: "backToTop", ref:o, tabindex: "-1"},null,512),v("a",{href: "#VPContent" ,class: "VPSkipLink vistuall"}
56+
strategy:
57+
matrix:
58+
os: [ubuntu-latest, windows-latest, macos-latest]
59+
node-version: [18.x, 20.x, 22.x, 24.x]
60+
shard: ["1/4", "2/4", "3/4", "4/4"]
61+
webpack-version: [latest]
62+
dev-server-version: [latest]
63+
64+
steps:
65+
- uses: actions/checkout@v4
66+
with:
67+
fetch-depth: 0
68+
69+
- name: Using Node v${{ matrix.node-version }}
70+
uses: actions/setup-node@v4
71+
with:
72+
node-version: ${{ matrix.node-version }}
73+
cache: "yarn"
74+
75+
- uses: pnpm/action-setup@v4
76+
with:
77+
version: 9
78+
79+
- name: Install dependencies
80+
run: yarn --frozen-lockfile --ignore-engines --ignore-scripts
81+
82+
- name: Prepare environment for tests
83+
run: yarn build:ci
84+
85+
- name: Run tests and generate coverage
86+
run: yarn test:coverage --ci --shard=${{ matrix.shard }}
87+
88+
- name: Upload coverage to Codecov
89+
uses: codecov/codecov-action@v5
90+
with:
91+
token: ${{ secrets.CODECOV_TOKEN }}
92+
verbose: true
93+
94+
smoketests:
95+
name: Smoketests - ${{ matrix.os }} - Node v${{ matrix.node-version }}
96+
runs-on: ubuntu-latest
97+
concurrency:
98+
group: smoketests-${{ github.ref }}
99+
cancel-in-progress: true
100+
strategy:
101+
matrix:
102+
os: [ubuntu-latest]
103+
node-version: [lts/*]
104+
steps:
105+
- uses: actions/checkout@v4
106+
with:
107+
fetch-depth: 0
108+
109+
- name: Using Node v${{ matrix.node-version }}
110+
uses: actions/setup-node@v4
111+
with:
112+
node-version: ${{ matrix.node-version }}
113+
cache: "yarn"
114+
115+
- name: Install dependencies
116+
run: yarn --frozen-lockfile --ignore-engines
117+

0 commit comments

Comments
 (0)