Skip to content

chore(deps): bump jwt-decode from 3.1.2 to 4.0.0 #1107

chore(deps): bump jwt-decode from 3.1.2 to 4.0.0

chore(deps): bump jwt-decode from 3.1.2 to 4.0.0 #1107

Workflow file for this run

name: ci
on:
push:
branches:
- main
- develop
- dependabot/develop
pull_request:
branches:
- main
- develop
- dependabot/develop
jobs:
unit:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [20]
steps:
- name: Checkout πŸ›Ž
uses: actions/checkout@master
- name: Setup node env πŸ—
uses: actions/[email protected]
with:
node-version: ${{ matrix.node }}
check-latest: true
- name: Get yarn cache directory path πŸ› 
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Cache node_modules πŸ“¦
uses: actions/[email protected]
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies πŸ‘¨πŸ»β€πŸ’»
run: yarn
- name: Load GraphQL Codegen πŸ•Έ
run: GQL_SCHEMA=https://raw.githubusercontent.com/BristolSTA/uobtheatre-api/dev/schema.graphql yarn codegen
- name: Run linter πŸ‘€
run: yarn lint:tsc && yarn lint:js
- name: Load GraphQL πŸ•Έ
run: API_BASE=https://staging.api.uobtheatre.com yarn codegen
- name: Run tests πŸ§ͺ
run: yarn test:unit --coverage
e2e:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@master
- name: Copy Testing Env βœ‰
run: cp .env.test .env
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
- name: Get yarn cache directory path πŸ› 
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Cache node_modules πŸ“¦
uses: actions/[email protected]
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- run: yarn
name: Install Yarn Dependencies πŸ‘¨πŸ»β€πŸ’»
- name: Authenticate with GitHub Container Registry πŸ”’
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Copy Dev Container Env πŸ“
run: cp .devcontainer/.env.example .devcontainer/.env
- name: Start Real API ⭐
run: docker-compose -f .devcontainer/docker-compose.yml up -d postgres uobtheatre-api
- name: Wait for API to boot πŸ’«
run: node .github/scripts/waiton-api.js http://localhost:9000
- name: Load GraphQL Codegen πŸ•Έ
run: API_BASE=http://localhost:9000 yarn codegen
- name: Run End-to-End Tests πŸ§ͺ
uses: cypress-io/github-action@v5
timeout-minutes: 7
with:
start: yarn beforetest:e2e:ci
wait-on: 'http://localhost:3000'