Skip to content

Commit

Permalink
fix: adjust YML indents
Browse files Browse the repository at this point in the history
  • Loading branch information
greatislander committed Nov 26, 2024
1 parent e0bec88 commit 1d82b32
Show file tree
Hide file tree
Showing 3 changed files with 105 additions and 105 deletions.
54 changes: 27 additions & 27 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,30 +18,30 @@ jobs:
node-version: [18.x, 20.x, 22.x]

steps:
- name: Prepare git
run: git config --global core.autocrlf false

- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Get npm cache directory
id: npm-cache
run: |
echo "::set-output name=dir::$(npm config get cache)"
- uses: actions/cache@v4
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install Node.js dependencies
run: npm install

- name: Run browser bundle tests
run: npm run test:bundles
- name: Prepare git
run: git config --global core.autocrlf false

- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Get npm cache directory
id: npm-cache
run: |
echo "::set-output name=dir::$(npm config get cache)"
- uses: actions/cache@v4
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install Node.js dependencies
run: npm install

- name: Run browser bundle tests
run: npm run test:bundles
54 changes: 27 additions & 27 deletions .github/workflows/ci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,30 @@ jobs:
timeout-minutes: 20

steps:
- name: Prepare git
run: git config --global core.autocrlf false

- uses: actions/checkout@v4

- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20.x

- name: Get npm cache directory
id: npm-cache
run: |
echo "::set-output name=dir::$(npm config get cache)"
- uses: actions/cache@v4
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install Node.js dependencies
run: npm install

- name: Run code linter
run: npm run lint
- name: Prepare git
run: git config --global core.autocrlf false

- uses: actions/checkout@v4

- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20.x

- name: Get npm cache directory
id: npm-cache
run: |
echo "::set-output name=dir::$(npm config get cache)"
- uses: actions/cache@v4
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install Node.js dependencies
run: npm install

- name: Run code linter
run: npm run lint
102 changes: 51 additions & 51 deletions .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,26 @@ name: Automated tests
on:
push:
paths:
- '.nycrc'
- 'package.json'
- 'buildModules.js'
- 'src/**/*.html'
- 'src/**/*.js'
- 'src/**/*.json'
- 'tests/**/*.html'
- 'tests/**/*.js'
- 'tests/**/*.json'
- ".nycrc"
- "package.json"
- "buildModules.js"
- "src/**/*.html"
- "src/**/*.js"
- "src/**/*.json"
- "tests/**/*.html"
- "tests/**/*.js"
- "tests/**/*.json"
pull_request:
paths:
- '.nycrc'
- 'package.json'
- 'buildModules.js'
- 'src/**/*.html'
- 'src/**/*.js'
- 'src/**/*.json'
- 'tests/**/*.html'
- 'tests/**/*.js'
- 'tests/**/*.json'
- ".nycrc"
- "package.json"
- "buildModules.js"
- "src/**/*.html"
- "src/**/*.js"
- "src/**/*.json"
- "tests/**/*.html"
- "tests/**/*.js"
- "tests/**/*.json"

defaults:
run:
Expand All @@ -42,43 +42,43 @@ jobs:
HEADLESS: true

steps:
- name: Prepare git
run: git config --global core.autocrlf false
- name: Prepare git
run: git config --global core.autocrlf false

- uses: actions/checkout@v4
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Get npm cache directory
id: npm-cache
run: |
echo "::set-output name=dir::$(npm config get cache)"
- uses: actions/cache@v4
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Install Node.js dependencies
run: npm install
- name: Get npm cache directory
id: npm-cache
run: |
echo "::set-output name=dir::$(npm config get cache)"
- name: Run browser tests
run: npm run test:browser
- uses: actions/cache@v4
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Run Node.js tests
run: npm run test:node
- name: Install Node.js dependencies
run: npm install

- name: Update code coverage
run: npm run posttest
- name: Run browser tests
run: npm run test:browser

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
files: ./reports/coverage-final.json
flags: unit-tests
token: ${{ secrets.CODECOV_TOKEN }}
- name: Run Node.js tests
run: npm run test:node

- name: Update code coverage
run: npm run posttest

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
files: ./reports/coverage-final.json
flags: unit-tests
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 1d82b32

Please sign in to comment.