Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ci] GithubActions: Convert the appveyor pipeline to Github Actions #2984

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 69 additions & 0 deletions .github/workflows/native-and-wsl.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Native and WSL

on: [push, pull_request]

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node-version: [16, 14, 12, 10, 8]
exclude:
- os: ubuntu-latest
node-version: 8
- os: ubuntu-latest
node-version: 6
- os: ubuntu-latest
node-version: 4
include:
- os: ubuntu-latest
npm-version: 6
eslint-version: 7
- os: windows-latest
npm-version: 6
eslint-version: 7

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: |
npm install
npm run copy-metafiles
bash ./tests/dep-time-travel.sh 2>&1
git config core.symlinks true
git reset --hard
- name: Install dependencies of resolvers
run: |
for dir in ./resolvers/*/
do
dir=${dir%*/}
pushd ${dir}
npm install
popd
done
- name: Install proper eslint-version
run: npm install --no-save eslint@${{ matrix.eslint-version }}
- name: Run tests
run: |
npm run pretest
npm run tests-only
for dir in ./resolvers/*/
do
dir=${dir%*/}
pushd ${dir}
npm test
popd
done
- name: Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
file: ./coverage/coverage-final.json # optional
flags: unittests # optional
name: codecov-umbrella # optional
fail_ci_if_error: true # optional (default = false)
Loading