Skip to content

dev: hiding buttons

dev: hiding buttons #2

Workflow file for this run

name: CI
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
- name: Install dependencies
run: |
if [ -f package.json ]; then
npm ci
fi
- name: Run tests
run: |
if [ -f package.json ] && npm run test; then
npm test
else
echo "No tests configured"
fi
- name: Check code formatting
run: |
if [ -f package.json ] && npm run lint; then
npm run lint
else
echo "No linting configured"
fi
build:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
- name: Install dependencies
run: |
if [ -f package.json ]; then
npm ci
fi
- name: Build extension
run: |
if [ -f build.sh ]; then
chmod +x build.sh
./build.sh
fi
if [ -f build-firefox.sh ]; then
chmod +x build-firefox.sh
./build-firefox.sh
fi
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: extension-builds
path: |
build/
build-firefox/
retention-days: 30