Add command for dumping an Elasticsearch instance in the PaaS #392
Workflow file for this run
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
name: Run tests | |
on: [pull_request] | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Cache node modules | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-node-modules | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- uses: actions/[email protected] | |
with: | |
node-version: 14 | |
- uses: ./.github/actions/es-lint | |
build: | |
name: Build | |
runs-on: ubuntu-22.04 | |
needs: [lint] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Cache node modules | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-node-modules | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- uses: actions/[email protected] | |
with: | |
node-version: 14 | |
- uses: ./.github/actions/build | |
- name: Store build archive as artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: kourou-build | |
path: ./kourou-*.tgz | |
functional-test: | |
name: Functional Test - ${{ matrix.test-set }} | |
runs-on: ubuntu-22.04 | |
needs: [build] | |
strategy: | |
matrix: | |
test-set: [stdout, cucumber] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Cache node modules | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-node-modules | |
NODE_ENV: test | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- uses: actions/[email protected] | |
with: | |
node-version: 14 | |
- name: Recover previously built Kourou | |
uses: actions/download-artifact@v2 | |
with: | |
name: kourou-build | |
- name: Unpack and prepare artifact for tests | |
run: | | |
tar xfz ./kourou-*.tgz | |
cp -fr .mocharc.json .nycrc tsconfig.json features test package/ | |
- uses: ./.github/actions/functional-test | |
with: | |
test-set: ${{ matrix.test-set }} |