Skip to content

Commit ee15159

Browse files
authored
Create main.yml
1 parent 02777a3 commit ee15159

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/main.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: NodeJS with Webpack
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
jobs:
10+
build:
11+
strategy:
12+
matrix:
13+
os: [macos-latest, ubuntu-latest, windows-latest]
14+
runs-on: ${{ matrix.os }}
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v3
18+
- name: Install Node.js
19+
uses: actions/setup-node@v3
20+
with:
21+
node-version: 18.x
22+
- run: npm install
23+
- run: xvfb-run -a npm test
24+
if: runner.os == 'Linux'
25+
- run: npm test
26+
if: runner.os != 'Linux'

0 commit comments

Comments
 (0)