Skip to content

chore(deps): bump @babel/traverse from 7.15.4 to 7.23.2 (#507) #872

chore(deps): bump @babel/traverse from 7.15.4 to 7.23.2 (#507)

chore(deps): bump @babel/traverse from 7.15.4 to 7.23.2 (#507) #872

Workflow file for this run

name: tests
on:
push:
branches: [master, main]
tags-ignore: ['**']
paths-ignore: ['**.md']
pull_request:
paths-ignore: ['**.md']
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
gitleaks:
name: Gitleaks
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
with: {fetch-depth: 0}
- name: Check for GitLeaks
uses: gacts/gitleaks@v1 # Action page: <https://github.com/gacts/gitleaks>
tests:
name: Run unit tests
runs-on: ubuntu-20.04
env: {FORCE_COLOR: 'true'}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with: {node-version: '16'}
- uses: actions/cache@v3
id: yarn-cache
with:
path: '**/node_modules'
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-yarn-
- if: steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile --no-progress --non-interactive
- run: yarn test --verbose --coverage
- uses: codecov/codecov-action@v3 # Docs: <https://github.com/codecov/codecov-action>
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage/clover.xml
fail_ci_if_error: false
build:
name: Try to build
runs-on: ubuntu-20.04
env: {FORCE_COLOR: 'true'}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with: {node-version: '16'}
- uses: actions/cache@v3
id: yarn-cache
with:
path: '**/node_modules'
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-yarn-
- if: steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile --no-progress --non-interactive
- run: yarn build
- uses: actions/upload-artifact@v3
with:
name: extension-dist
path: dist.zip
if-no-files-found: error
retention-days: 1
addons-linter:
name: Run addon linter (mozilla)
runs-on: ubuntu-20.04
needs: [build]
env: {FORCE_COLOR: 'true'}
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v3
with:
name: extension-dist
path: dist
- uses: actions/setup-node@v3
with: {node-version: '16'}
- run: yarn global add addons-linter
- run: addons-linter ./dist/dist.zip