Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #402 from webpack-contrib/github-actions
Replace Travis with GitHub actions as CI
- Loading branch information
Showing
2 changed files
with
52 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: main | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
jobs: | ||
build-and-test: | ||
strategy: | ||
matrix: | ||
node: | ||
- '10' | ||
- '12' | ||
- '14' | ||
runs-on: ubuntu-latest | ||
name: Tests on Node.js v${{ matrix.node }} | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
|
||
- name: Download deps | ||
uses: bahmutov/npm-install@v1 | ||
|
||
- name: Build sources | ||
run: npm run build | ||
|
||
- name: Run tests with xvfb available | ||
uses: GabrielBB/xvfb-action@v1 | ||
with: | ||
run: npm run test | ||
|
||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '14.x' | ||
|
||
- name: Download deps | ||
uses: bahmutov/npm-install@v1 | ||
|
||
- name: Run lint | ||
run: npm run lint |
This file was deleted.
Oops, something went wrong.