Skip to content

chore(deps): update github actions #656

chore(deps): update github actions

chore(deps): update github actions #656

name: Continuous Integration
concurrency:
group: bunnycdn-atomic
on:
push:
branches:
- main
pull_request:
jobs:
ci:
name: CI
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
- name: Add ESLint Problem Matcher
run: echo "::add-matcher::.github/problemMatchers/eslint.json"
- name: Use Node.js v18
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # v3
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- name: Locate Yarn Cache
id: yarn-cache-dir-path
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
- name: Yarn Cache
uses: actions/cache@v3
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 --immutable
- name: Run ESLint
run: yarn lint --fix=false
- name: Run tests
run: yarn test --coverage
env:
BUNNY_VIDEO_LIBRARY: ${{ secrets.BUNNY_VIDEO_LIBRARY }}
BUNNY_API_KEY: ${{ secrets.BUNNY_API_KEY }}
- name: Build Code
run: yarn build