Skip to content

Commit

Permalink
ci: get rid of build (#15)
Browse files Browse the repository at this point in the history
* ci: get rid of build

* update test pipeline

* add integration test

* update idb installation

* revise integration test

* debug integration test

* cleanup

* amazing?
  • Loading branch information
tianfeng92 authored Nov 28, 2024
1 parent 66d0b16 commit 8dbc89f
Show file tree
Hide file tree
Showing 15 changed files with 8,315 additions and 19,424 deletions.
36 changes: 32 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- main

jobs:
build:
test:
runs-on: ubuntu-latest

steps:
Expand All @@ -24,11 +24,39 @@ jobs:
- name: Install Dependencies
run: npm ci

- name: Build
run: npm run build

- name: Lint
run: npm run lint

- name: Test
run: npm test

integration-test:
runs-on: macos-latest

steps:
- uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: 'npm'

- name: Install Dependencies
run: npm ci

- name: Link
run: npm link

- name: Install idb
run: |
brew tap facebook/fb
brew install idb-companion
- name: Test
working-directory: tests/integration
run: |
npm ci
npm link testcafe-browser-provider-ios
DEVICE=$(npx testcafe --list-browsers ios | tail -n 1)
npx testcafe "$DEVICE" tests/
26 changes: 0 additions & 26 deletions Gulpfile.js

This file was deleted.

6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,6 @@ Run with `DEBUG="testcafe:browser-provider-ios"` to see debug output.
npm test
```

## Built With

* [Babel](https://babeljs.io)
* [gulp.js](https://gulpjs.com)
* [Mocha](https://mochajs.org)

## Contributing

Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our process for submitting pull requests to us, and please ensure you follow the [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md).
Expand Down
2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default [
},
},
{
files: ["test/**/*.js"],
files: ["tests/unit/**/*.js"],
plugins: {
mocha,
},
Expand Down
Loading

0 comments on commit 8dbc89f

Please sign in to comment.