-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgrade nightwatch and switch from Travis to GH Actions
- Loading branch information
Showing
40 changed files
with
1,090 additions
and
1,164 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
# Default environment variables for the Docker Compose files in /docker | ||
# This file needs to be placed where the docker-compose command is run from. | ||
|
||
# Used to provide a CouchDB 2 / 3 build matrix in .travis.yml | ||
COUCHDB_IMAGE=apache/couchdb3 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
name: CI | ||
on: [push] | ||
jobs: | ||
run-unit-tests: | ||
name: Run unit tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '14' | ||
- name: Install npm packages | ||
run: | | ||
npm install -g npm@latest | ||
npm ci | ||
npm ls --production --depth=0 | ||
- name: Run style check | ||
run: npm run stylecheck | ||
- name: Run unit tests | ||
run: npm run test | ||
run-e2e-tests: | ||
name: Run e2e tests | ||
runs-on: ubuntu-latest | ||
needs: [run-unit-tests] | ||
strategy: | ||
matrix: | ||
include: | ||
- COUCHDB_IMAGE: apache/couchdb:3 | ||
NIGHTWATCH_SKIPTAGS: "search,nonpartitioned,couchdb-v2-only" | ||
- COUCHDB_IMAGE: apache/couchdb:2.3.1 | ||
NIGHTWATCH_SKIPTAGS: "search,partitioned" | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '14' | ||
cache: 'npm' | ||
- run: ./bin/build-couchdb-dev.sh | ||
env: | ||
COUCHDB_IMAGE: ${{ matrix.COUCHDB_IMAGE }} | ||
NIGHTWATCH_SKIPTAGS: ${{ matrix.NIGHTWATCH_SKIPTAGS }} | ||
- name: Install npm packages | ||
run: | | ||
npm install -g npm@latest | ||
npm ci | ||
npm ls --production --depth=0 | ||
- name: Start CouchDB | ||
env: | ||
COUCHDB_IMAGE: ${{ matrix.COUCHDB_IMAGE }} | ||
NIGHTWATCH_SKIPTAGS: ${{ matrix.NIGHTWATCH_SKIPTAGS }} | ||
run: | | ||
./bin/docker-up-and-check.sh | ||
curl http:https://127.0.0.1:5984 | ||
- name: Configure display | ||
run: | | ||
export DISPLAY=:99 | ||
sudo apt-get install xvfb | ||
- name: Start Fauxton | ||
env: | ||
COUCHDB_IMAGE: ${{ matrix.COUCHDB_IMAGE }} | ||
NIGHTWATCH_SKIPTAGS: ${{ matrix.NIGHTWATCH_SKIPTAGS }} | ||
run: | | ||
grunt debugDev && DIST=./dist/debug ./bin/fauxton & | ||
sleep 60 | ||
curl http:https://localhost:8000 | ||
- name: Run e2e tests | ||
env: | ||
COUCHDB_IMAGE: ${{ matrix.COUCHDB_IMAGE }} | ||
NIGHTWATCH_SKIPTAGS: ${{ matrix.NIGHTWATCH_SKIPTAGS }} | ||
run: xvfb-run --auto-servernum ./node_modules/.bin/grunt nightwatch_retries | ||
- name: Shutdown CouchDB | ||
run: npm run docker:down |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
*.log | ||
node_modules | ||
dist | ||
build | ||
|
This file was deleted.
Oops, something went wrong.
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 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 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 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 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 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 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 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 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 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 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 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 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 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
Oops, something went wrong.