disable windows workflow for now #264
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
# This file configure a GitHub workflow responsible to perform | |
# various checks related to the codebase. | |
# | |
# For that reason it's runned on every pull request and push to main. | |
# | |
# It does the following: | |
# - Check linting passes (no eslint error on files) | |
# - Run tests and ensure none is failing | |
name: eslint_and_tests | |
on: | |
push: | |
branches: | |
- main | |
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#patterns-to-match-file-paths | |
paths-ignore: | |
- "docs/**" | |
- "packages/independent/workflow/**" | |
- "www/**" | |
- "**/readme.md" | |
pull_request: | |
branches: | |
- "**" | |
paths-ignore: | |
- "docs/**" | |
- "packages/independent/workflow/**" | |
- "www/**" | |
- "**/readme.md" | |
jobs: | |
test: | |
strategy: | |
matrix: | |
# https://github.com/actions/runner-images | |
os: | |
- ubuntu-22.04 | |
- macos-14 # might cause https://github.com/microsoft/playwright/issues/30585 | |
# - windows-2022 # disabled until got a windows to make it work again | |
node: [22.13.1] | |
runs-on: ${{ matrix.os }} | |
name: test on ${{ matrix.os }} and node ${{ matrix.node }} | |
env: | |
CI: true | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
## --- NPM INSTALL START --- ## | |
# sudo ulimit should prevent npm link failure | |
- name: Increase Linux fs limits | |
if: runner.os == 'Linux' | |
run: | | |
sudo sysctl fs.inotify.max_user_watches=524288 | |
sudo sysctl -p | |
sudo sh -c "ulimit -n 65536 && exec su $LOGNAME" | |
ulimit -n | |
- name: Install node modules | |
run: npm install | |
- name: Install playwright deps | |
run: npx playwright install --with-deps | |
- name: Fix lightningcss windows | |
if: runner.os == 'Windows' | |
run: npm install lightningcss-win32-x64-msvc | |
## --- NPM INSTALL END --- ## | |
- name: Run ESLint | |
env: | |
NODE_OPTIONS: "--max_old_space_size=4096" | |
run: npm run eslint | |
- name: Install certificate # needed for @jsenv/service-worker tests | |
if: runner.os == 'Linux' # https://docs.github.com/en/actions/learn-github-actions/contexts#runner-context | |
run: npm run https:setup | |
- name: Run core tests | |
run: npm test | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |