name: Build on: push: branches: [main] pull_request: branches: [main] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v3 with: node-version: 18.x cache: 'npm' - name: Install npm@8 run: npm i -g npm@8 - name: Install run: npm ci --prefer-offline - name: Build run: npm run build - name: Run addon tests run: npm run test:addons