This is an automated email from the ASF dual-hosted git repository. ronny pushed a commit to branch update-github-ci in repository https://gitbox.apache.org/repos/asf/couchdb-fauxton.git
commit f8d2ebb206e78249a3800dd11143735eda0971b2 Author: Ronny Berndt <[email protected]> AuthorDate: Thu Jul 28 14:29:19 2022 +0200 Use official docker images for CI runs Some small formatting changes --- .github/workflows/main.yml | 116 ++++++++++++++++++++++----------------------- 1 file changed, 58 insertions(+), 58 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6b2df4d8..0682e6a6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,73 +1,73 @@ name: CI -on: [push, pull_request] +on: [ push, pull_request ] 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 + - 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] + needs: [ run-unit-tests ] strategy: matrix: include: - - COUCHDB_IMAGE: apache/couchdb:3 + - COUCHDB_IMAGE: couchdb:3 NIGHTWATCH_SKIPTAGS: "search,nonpartitioned,couchdb-v2-only" - - COUCHDB_IMAGE: apache/couchdb:2.3.1 + - COUCHDB_IMAGE: 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://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 10 - curl http://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 \ No newline at end of file + - 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://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 10 + curl http://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
