mirror of
https://github.com/lingble/chatwoot.git
synced 2025-10-29 18:22:53 +00:00
In my previous PR I got some errors that when checking it is possible to conclude that the version of ubuntu 20.04 in the Github Actions images to run the tests is no longer supported.  Possible to check at this url: https://github.com/actions/runner-images/issues/11101 ## What's changed Changing the Ubuntu version in the image to run the tests. Old version: 20.04 New version: 22.04 ## BEFORE:  ## NOW: 
42 lines
829 B
YAML
42 lines
829 B
YAML
name: Frontend Lint & Test
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- develop
|
|
pull_request:
|
|
branches:
|
|
- develop
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
ref: ${{ github.event.pull_request.head.ref }}
|
|
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
|
|
|
- uses: ruby/setup-ruby@v1
|
|
with:
|
|
bundler-cache: true
|
|
|
|
- uses: pnpm/action-setup@v4
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 23
|
|
cache: 'pnpm'
|
|
|
|
- name: Install pnpm dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Run eslint
|
|
run: pnpm run eslint
|
|
|
|
- name: Run frontend tests with coverage
|
|
run: |
|
|
mkdir -p coverage
|
|
pnpm run test:coverage
|