Skip to content

chore(deps): update github actions (#311) #1600

chore(deps): update github actions (#311)

chore(deps): update github actions (#311) #1600

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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Use Node.js v22
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4
with:
node-version: 22
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@v4
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 Lint
run: yarn lint
- name: Run tests
run: yarn test --coverage
env:
BUNNY_VIDEO_LIBRARY: ${{ secrets.BUNNY_VIDEO_LIBRARY }}
BUNNY_API_KEY: ${{ secrets.BUNNY_API_KEY }}
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Build Code
run: yarn build