Skip to content

fix(deps): bump flatted, eslint and eslint-plugin-unicorn #1618

fix(deps): bump flatted, eslint and eslint-plugin-unicorn

fix(deps): bump flatted, eslint and eslint-plugin-unicorn #1618

Workflow file for this run

name: ci
on: [ push ]
jobs:
test-code:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
ref: ${{ github.ref }}
- name: Setup Node.js
uses: actions/setup-node@v6.3.0
with:
node-version: 12.14
- name: Cache node modules
uses: actions/cache@v5
env:
cache-name: cache-node-modules
with:
path: |
~/.npm
node_modules
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
- name: Install NPM dependencies
run: npm ci
- name: Build source code
run: npm run build --if-present
- name: Test source code
run: npm test
- name: Cache coverage
uses: actions/cache@v5
env:
cache-name: cache-coverage
with:
path: coverage
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ github.sha }}
submit-test-coverage:
needs: [ test-code ]
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
ref: ${{ github.ref }}
- name: Cache coverage
uses: actions/cache@v5
env:
cache-name: cache-coverage
with:
path: coverage
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ github.sha }}
- name: Submit coveralls test coverage report
uses: coverallsapp/github-action@v2.3.7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
create-github-release:
needs: [ test-code ]
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
ref: ${{ github.ref }}
- name: Setup Node.js
uses: actions/setup-node@v6.3.0
with:
node-version: 12.14
- name: Cache node modules
uses: actions/cache@v5
env:
cache-name: cache-node-modules
with:
path: |
~/.npm
node_modules
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
- name: Check if release should be created
run: npm run semantic-release
env:
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}