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

Add Babel e2e test #9

Merged
merged 3 commits into from
Apr 6, 2022
Merged
Show file tree
Hide file tree
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
31 changes: 0 additions & 31 deletions .github/workflows/e2e-prettier.yml

This file was deleted.

66 changes: 66 additions & 0 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: E2E tests

on:
push:
pull_request:

jobs:
prettier:
name: Prettier
runs-on: ubuntu-latest
steps:
- name: Setup Node.js
uses: actions/setup-node@v3

- name: Checkout
uses: actions/checkout@v3
with:
path: jest-light-runner

- name: Checkout "prettier"
uses: actions/checkout@v3
with:
repository: prettier/prettier
ref: next
path: prettier

- name: Run tests
run: |
cd prettier
yarn install --frozen-lockfile
yarn upgrade jest-light-runner@file:../jest-light-runner
yarn test:format

babel:
name: Babel
runs-on: ubuntu-latest
steps:
- name: Setup Node.js
uses: actions/setup-node@v3

- name: Checkout
uses: actions/checkout@v3
with:
path: jest-light-runner

- name: Checkout "babel"
uses: actions/checkout@v3
with:
repository: babel/babel
path: babel

- name: Build
run: |
yarn install --frozen-lockfile
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yarn install --immutable?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uh yes, I wonder why Yarn didn't complain about the unknown option 🤔

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On nevermind, it warns.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make build-no-bundle
working-directory: babel

- name: Update jest-light-runner
run: |
yarn up jest-light-runner@file:../jest-light-runner
working-directory: babel

- name: Test
run: |
yarn jest babel-core babel-preset-env
working-directory: babel
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ You can specify custom ESM loaders using Node.js's [`--loader`](https://nodejs.o

This project follows semver, and it's currently in the `0.x` release line.

It is used to run tests in the [`babel/babel`](https://github.com/babel/babel/) repository, but there are no tests for the runner itself. I would gladly accept a pull requests adding a test infrastructure!
It is used to run tests in the [`babel/babel`](https://github.com/babel/babel/) and [`prettier/prettier`](https://github.com/prettier/prettier/) repositories, but there are no internal tests for the runner itself. I would gladly accept a pull requests adding a test infrastructure!

## Donations

Expand Down