SWED-2263 fix height section DS homepage #1452
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pull request | |
on: [pull_request] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
brand: ["payex", "swedbankpay"] | |
steps: | |
- uses: actions/checkout@v3 | |
# Set brand specific variables | |
- name: Environment variables | |
id: variables | |
run: ./.github/scripts/variables.sh --brand ${{ matrix.brand }} --ref ${{ github.ref }} | |
- name: Set Node.js 16.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.x | |
- name: Cache dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: ${{ runner.os }}-node- | |
- name: Install dependencies | |
run: npm ci | |
- name: Tests and linting | |
run: npm run lint && npm run test:coverage | |
- uses: codecov/codecov-action@v3.1.4 | |
# with: | |
# files: ./coverage/lcov.info | |
# fail_ci_if_error: true | |
- uses: preactjs/compressed-size-action@v2 | |
with: | |
repo-token: "${{ secrets.GITHUB_TOKEN }}" | |
build-script: "${{ steps.variables.outputs.BUILD_SCRIPT }}" | |
exclude: "{**/*.map,**/node_modules/**,**/*chunk*.*}" | |
pattern: "{dist/**/*.js,dist/**/*.css}" | |
# a file with a delta of less than 100 bytes will be reported as unchanged. [THN] | |
minimum-change-threshold: 100 |