diff options
author | Marius Halden <marius.h@lden.org> | 2021-10-07 13:32:40 +0200 |
---|---|---|
committer | Marius Halden <marius.h@lden.org> | 2021-10-07 13:32:40 +0200 |
commit | 09dacfc6b8bf62addeee16c20b1d90c2a256da96 (patch) | |
tree | 7caa2bf9e92227ab74448f9b746dd28bbcb81b2a /.github/workflows/cypress.yml | |
parent | 585e57484f9c6332668bf1ac0a6a3b39dbe32223 (diff) | |
parent | cea89fb87a96943708a1db0f646492fbfaaf000f (diff) |
Merge tag 'v3.1' into fiksgatami-devfiksgatami-dev
Diffstat (limited to '.github/workflows/cypress.yml')
-rw-r--r-- | .github/workflows/cypress.yml | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml new file mode 100644 index 000000000..557ebd529 --- /dev/null +++ b/.github/workflows/cypress.yml @@ -0,0 +1,46 @@ +name: Cypress + +on: [push, pull_request] + +jobs: + test: + name: Run Cypress tests + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + with: + submodules: true + + - name: Setup node + uses: actions/setup-node@v1 + with: + node-version: 8.x + + - name: Setup cache (carton) + uses: actions/cache@v2 + with: + path: local + key: ${{ runner.os }}-carton-${{ hashFiles('cpanfile.snapshot') }} + + - name: Setup cache (cypress) + uses: actions/cache@v2 + with: + path: | + ~/.npm + node_modules + key: ${{ runner.os }}-node-8-cypress-3.8.3 + + - name: Install packages + run: | + sudo apt install -y gettext + npm install cypress@3.8.3 + vendor/bin/carton install --deployment + commonlib/bin/gettext-makemo FixMyStreet + echo "$(npm bin)" >> $GITHUB_PATH + + - name: Run Cypress tests + run: | + bin/browser-tests run ${CYPRESS_RECORD_KEY:+--record} + env: + CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} |