mirror of
https://github.com/expo/eas-cli.git
synced 2026-11-16 13:01:08 -10:00
* test against node 20 and drop support for node 14 * update CHANGELOG.md * update @types/node * bump yarn version * Revert "update @types/node" This reverts commit027e26b002. * update @types/node * try to debug * Revert "try to debug" This reverts commit0d557d02f8. * test sth * update lock * Revert "update lock" This reverts commit184b412655. * Revert "test sth" This reverts commit77606cf5be. * diff once again * fix issues * Revert "diff once again" This reverts commit526ab57453.
62 lines
1.7 KiB
YAML
62 lines
1.7 KiB
YAML
name: Run tests
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
types: [opened, synchronize]
|
|
|
|
concurrency:
|
|
group: test-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node: ['16', '18', '20']
|
|
include:
|
|
- node: '20'
|
|
coverage: true
|
|
name: Test with Node ${{ matrix.node }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Setup node
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: ${{ matrix.node }}
|
|
- run: yarn install --frozen-lockfile --check-files
|
|
- run: yarn typecheck
|
|
- run: yarn test
|
|
if: ${{ !matrix.coverage }}
|
|
env:
|
|
NODE_OPTIONS: --max-old-space-size=8192
|
|
- run: yarn test --coverage
|
|
if: ${{ matrix.coverage }}
|
|
env:
|
|
# Oclif seems to cause OOM errors when testing with coverage enabled.
|
|
# Remove this whenever we solved those OOM errors.
|
|
NODE_OPTIONS: --max-old-space-size=8192
|
|
- run: yarn lint --max-warnings=0
|
|
- run: yarn install --frozen-lockfile --check-files
|
|
working-directory: ./scripts
|
|
- uses: codecov/codecov-action@v1
|
|
if: ${{ matrix.coverage }}
|
|
with:
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
- run: yarn lint-changelog
|
|
|
|
notify-slack:
|
|
runs-on: ubuntu-latest
|
|
needs: test
|
|
name: Notify Slack
|
|
if: ${{ github.ref == 'refs/heads/main' && always() }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Notify Slack
|
|
uses: ./.github/internal-actions/notify-slack-on-fail-or-recover
|
|
with:
|
|
channel: eas-cli
|
|
slack_webhook: ${{ secrets.SLACK_WEBHOOK }}
|