Skip to content

Commit

Permalink
Fixing ghactions2 (#1749)
Browse files Browse the repository at this point in the history
Fully replaced travis with github actions, but still don't test the full matrix and still not migrated to LambdaTest.
  • Loading branch information
dfahlander authored Jun 18, 2023
1 parent de0027c commit e65cea2
Show file tree
Hide file tree
Showing 16 changed files with 666 additions and 51 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
name: Build and Test

on: push
on: [push, workflow_dispatch]

env:
#LAMBDATEST: "true"
GH_ACTIONS: "true"
LT_USERNAME: ${{ secrets.LT_USERNAME }}
LT_ACCESS_KEY: ${{ secrets.LT_ACCESS_KEY }}
BROWSER_STACK_USERNAME: ${{ secrets.BROWSER_STACK_USERNAME }}
BROWSER_STACK_ACCESS_KEY: ${{ secrets.BROWSER_STACK_ACCESS_KEY }}

jobs:
test:
Expand All @@ -18,9 +23,6 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: 16
- name: Setup firefox
uses: browser-actions/setup-firefox@v1
run: firefox --version
- name: Install dependencies
run: |
curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm@7
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Dexie.js
========

[![NPM Version][npm-image]][npm-url] [![Build Status](https://travis-ci.com/dexie/Dexie.js.svg?branch=master)](https://travis-ci.com/dexie/Dexie.js)[![Tested with Browserstack](https://dexie.org/assets/images/tested-with-browserstack2.png)](https://www.browserstack.com)
[![NPM Version][npm-image]][npm-url] [![Build Status](https://github.com/dexie/Dexie.js/actions/workflows/main.yml/badge.svg)](https://travis-ci.com/dexie/Dexie.js)[![Tested with Browserstack](https://dexie.org/assets/images/tested-with-browserstack2.png)](https://www.browserstack.com)

Dexie.js is a wrapper library for indexedDB - the standard database in the browser. https://dexie.org

Expand Down
2 changes: 1 addition & 1 deletion addons/Dexie.Observable/test/integration/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const {karmaCommon, getKarmaConfig, defaultBrowserMatrix} = require('../../../..
module.exports = function (config) {
const browserMatrixOverrides = {
// Be fine with testing on local travis firefox + browserstack chrome, latest supported.
ci: ["Firefox", "bs_chrome_latest_supported"],
ci: ["bs_chrome_latest_supported"],
// Safari fails to reply on browserstack. Need to not have it here.
// Just complement with old chrome browser that is not part of CI test suite.
pre_npm_publish: [
Expand Down
2 changes: 1 addition & 1 deletion addons/Dexie.Observable/test/unit/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const {karmaCommon, getKarmaConfig, defaultBrowserMatrix} = require('../../../..
module.exports = function (config) {
const browserMatrixOverrides = {
// Be fine with testing on local travis firefox + browserstack chrome, latest supported.
ci: ["Firefox", "bs_chrome_latest_supported"],
ci: ["bs_chrome_latest_supported"],
// Safari fails to reply on browserstack. Need to not have it here.
// Just complement with old chrome browser that is not part of CI test suite.
pre_npm_publish: [
Expand Down
2 changes: 1 addition & 1 deletion addons/Dexie.Syncable/test/integration/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const {karmaCommon, getKarmaConfig, defaultBrowserMatrix} = require('../../../..
module.exports = function (config) {
const browserMatrixOverrides = {
// Be fine with testing on local travis firefox + browserstack chrome, latest supported.
ci: ["Firefox", "bs_chrome_latest_supported"],
ci: ["bs_chrome_latest_supported"],
// Safari fails to reply on browserstack. Need to not have it here.
// Just complement with old chrome browser that is not part of CI test suite.
pre_npm_publish: [
Expand Down
2 changes: 1 addition & 1 deletion addons/Dexie.Syncable/test/unit/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const {karmaCommon, getKarmaConfig, defaultBrowserMatrix} = require('../../../..
module.exports = function (config) {
const browserMatrixOverrides = {
// Be fine with testing on local travis firefox + browserstack chrome, latest supported.
ci: ["Firefox", "bs_chrome_latest_supported"],
ci: ["bs_chrome_latest_supported"],
// Safari fails to reply on browserstack. Need to not have it here.
// Just complement with old chrome browser that is not part of CI test suite.
pre_npm_publish: [
Expand Down
2 changes: 1 addition & 1 deletion addons/dexie-cloud/test/unit/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const {karmaCommon, getKarmaConfig, defaultBrowserMatrix} = require('../../../..
module.exports = function (config) {
const browserMatrixOverrides = {
// Be fine with testing on local travis firefox + browserstack chrome, latest supported.
ci: ["Firefox", "bs_chrome_latest_supported"],
ci: ["bs_chrome_latest_supported"],
// Safari fails to reply on browserstack. Need to not have it here.
// Just complement with old chrome browser that is not part of CI test suite.
pre_npm_publish: [
Expand Down
2 changes: 1 addition & 1 deletion addons/dexie-export-import/test/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const {karmaCommon, getKarmaConfig, defaultBrowserMatrix} = require('../../../te
module.exports = function (config) {
const cfg = getKarmaConfig({
// Be fine with testing on local travis firefox + browserstack chrome, latest supported.
ci: ["Firefox", "bs_chrome_latest_supported"],
ci: ["bs_chrome_latest_supported"],
// Safari fails to reply on browserstack. Need to not have it here.
// Just complement with old chrome browser that is not part of CI test suite.
pre_npm_publish: [
Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@
"test": "pnpm run build && pnpm run test:typings && pnpm run test:unit",
"test:unit": "karma start test/karma.conf.js --single-run",
"test:typings": "tsc -p test/typings-test/",
"test:debug": "karma start test/karma.conf.js --log-level debug"
"test:debug": "karma start test/karma.conf.js --log-level debug",
"test:ltcloud": "cross-env LAMBDATEST=true npm run test:ltTunnel & sleep 10 && npm run test:unit",
"test:ltTunnel": "node test/lt-local"
},
"just-build": {
"default": [
Expand Down Expand Up @@ -116,6 +118,7 @@
},
"homepage": "https://dexie.org",
"devDependencies": {
"@lambdatest/node-tunnel": "^4.0.1",
"dts-bundle-generator": "^5.9.0",
"just-build": "^0.9.24",
"karma": "^6.1.1",
Expand All @@ -124,6 +127,7 @@
"karma-firefox-launcher": "^2.1.0",
"karma-mocha-reporter": "^2.2.5",
"karma-qunit": "^4.1.1",
"karma-webdriver-launcher": "^1.0.8",
"qunit": "^2.10.0",
"qunitjs": "^1.23.1",
"rollup": "^2.40.0",
Expand Down
Loading

0 comments on commit e65cea2

Please sign in to comment.