Update achievements.json #1807
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: End to End Testing | |
on: [push, pull_request] | |
jobs: | |
test: | |
defaults: | |
run: | |
shell: bash | |
strategy: | |
matrix: | |
node-version: [18.x] | |
name: Run tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout on ${{ runner.os }} | |
uses: actions/checkout@v3 | |
- name: Start MongoDB | |
uses: supercharge/[email protected] | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Enable Corepack | |
run: corepack enable | |
- name: Cache node_modules | |
uses: actions/cache@v3 | |
with: | |
path: ./node_modules | |
key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }} | |
${{ runner.os }}-node-${{ matrix.node-version }} | |
- name: Get Yarn cache directory | |
id: yarn-cache | |
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT | |
- name: Cache Yarn folder | |
uses: actions/cache@v3 | |
with: | |
path: ${{ steps.yarn-cache.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn-${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }} | |
${{ runner.os }}-yarn-${{ matrix.node-version }} | |
- name: Cache Yarn install state | |
uses: actions/cache@v3 | |
with: | |
path: ./.yarn/install-state.gz | |
key: ${{ runner.os }}-yarn-install-state-${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn-install-state-${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }} | |
${{ runner.os }}-yarn-install-state-${{ matrix.node-version }} | |
- name: Run Cypress | |
uses: cypress-io/github-action@v5 | |
with: | |
working-directory: ./packages/e2e | |
install-command: yarn install | |
command: yarn test:record | |
env: | |
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |