Skip to content

[Snyk] Security upgrade eslint from 8.52.0 to 9.0.0 #769

[Snyk] Security upgrade eslint from 8.52.0 to 9.0.0

[Snyk] Security upgrade eslint from 8.52.0 to 9.0.0 #769

Workflow file for this run

name: Node.js CI
### github.ref
# tags refs/tags/v0.0.1
# master refs/heads/master
on:
push:
tags:
- 'v*'
branches:
- master
pull_request:
branches:
- master
jobs:
####### Print: Prints some context relating to the job to make future debugging easier
print:
name: Print context
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Install Compose
uses: ndeloof/[email protected]
with:
legacy: true # will also install in PATH as `docker-compose`
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Print context 🎉
env:
GH_REF: ${{ github.ref }}
run: |
echo "GH_REF: ${GH_REF}"
echo "docker-compose version: $(docker-compose version)"
echo "docker version: $(docker version)"
####### Lint
lint:
name: Lint
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Install Compose
uses: ndeloof/[email protected]
with:
legacy: true # will also install in PATH as `docker-compose`
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 18.x
- run: yarn prep
- run: yarn lint
####### Unit tests
unit_tests:
name: 'Unit tests'
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Install Compose
uses: ndeloof/[email protected]
with:
legacy: true # will also install in PATH as `docker-compose`
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 18.x
registry-url: https://registry.npmjs.org/
- run: yarn prep
- run: yarn test:unit
####### Integration tests
integration_tests:
name: 'Integration tests'
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Install Compose
uses: ndeloof/[email protected]
with:
legacy: true # will also install in PATH as `docker-compose`
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 18.x
registry-url: https://registry.npmjs.org/
- run: yarn prep
- run: yarn test:examples --concurrency 2
####### Publish next to npm
npm_publish_next:
name: Publish next to npm
runs-on: ubuntu-latest
timeout-minutes: 10
needs: [lint, unit_tests, integration_tests]
if: startsWith(github.ref, 'refs/heads/master')
steps:
- name: Install Compose
uses: ndeloof/[email protected]
with:
legacy: true # will also install in PATH as `docker-compose`
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 18.x
registry-url: https://registry.npmjs.org/
- name: yarn publish next
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
yarn install
node pipeline/updateNextVersion.js
cd packages/dockest
yarn install
yarn publish --tag next
####### Publish to npm
npm_publish:
name: Publish to npm
runs-on: ubuntu-latest
timeout-minutes: 10
needs: [lint, unit_tests, integration_tests]
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Install Compose
uses: ndeloof/[email protected]
with:
legacy: true # will also install in PATH as `docker-compose`
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 18.x
registry-url: https://registry.npmjs.org/
- name: yarn publish
env:
IS_ALPHA: ${{ contains(github.ref, 'alpha')}}
IS_BETA: ${{ contains(github.ref, 'beta')}}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
if [ ${IS_ALPHA} = true ]; then export NPM_TAG="--tag alpha"; fi
if [ ${IS_BETA} = true ]; then export NPM_TAG="--tag beta"; fi
cd packages/dockest
yarn install
yarn publish ${NPM_TAG}