chore(deps): update typescript-eslint monorepo to v8 (major) #4706
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: Build | |
on: | |
push: | |
tags-ignore: | |
- '*.*' | |
branches-ignore: | |
- master | |
- renovate/** | |
pull_request: | |
types: [ assigned, opened, synchronize, reopened ] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [ 18.x ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Use Node.js ${{matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{matrix.node-version }} | |
- name: Install | |
run: yarn --frozen-lockfile | |
- name: Lint | |
run: yarn run lint | |
- name: Unit Test | |
run: yarn run test | |
- name: Build | |
run: yarn run build | |
- name: Build Package | |
run: | | |
cd dist/apps/generator-cli | |
yarn pack -f ../package.tgz | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: package.tgz | |
path: dist/apps/package.tgz | |
e2e: | |
name: "E2E local: (${{ matrix.os }})" | |
needs: build | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ ubuntu-latest, macos-latest ] | |
node-version: [ 18.x ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Use Node.js ${{matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{matrix.node-version }} | |
- uses: actions/download-artifact@v4 | |
with: | |
name: package.tgz | |
- name: Test | |
run: | | |
cd ./examples | |
yarn global add json && export PATH="$(yarn global bin):$PATH" | |
yarn cache clean && yarn add $GITHUB_WORKSPACE/package.tgz | |
npm run oa version | |
npm run oa completion | |
npm run oa help | |
npm run oa help generate | |
npm run oa version-manager help | |
npm run oa generate -- -g ruby -i https://raw.githubusercontent.com/OpenAPITools/openapi-generator/master/modules/openapi-generator/src/test/resources/3_0/petstore.yaml -o $GITHUB_WORKSPACE/tmp/ruby-client | |
(npm run oa version-manager set 3.0.0 && npm run oa version | grep -q '3.0.0') || exit 1 | |
(npm run oa version-manager set 4.0 && npm run oa version | grep -q '4.0.3') || exit 1 | |
(npm run oa version-manager set 4.3.1 && npm run oa version | grep -q '4.3.1') || exit 1 | |
(npm run oa version-manager set 4.3.1 && npm run oa version | grep -q '4.3.1') || exit 1 | |
(export OPENAPI_GENERATOR_CLI_SEARCH_URL=DEFAULT && npm run oa version-manager set 7.2.0 && npm run oa version | grep -q '7.2.0') || exit 1 | |
json -I -f openapitools.json -e 'this["generator-cli"]["storageDir"]="./my/storage/"' | |
(npm run oa version-manager set 4.3.0 && npm run oa version | grep -q '4.3.0') || exit 1 | |
test -f ./my/storage/4.3.0.jar || exit 1 | |
json -I -f openapitools.json -e 'this["generator-cli"]["storageDir"]="~/my/storage/"' | |
(npm run oa version-manager set 4.3.1 && npm run oa version | grep -q '4.3.1') || exit 1 | |
test -f ~/my/storage/4.3.1.jar || exit 1 | |
npm run oa:generate && mkdir ./foo && cd ./foo && npm run oa:generate | |
# release: | |
# if: github.event.pull_request.merged == 'true' | |
# name: Release (Dry) | |
# # needs: e2e # DONT FORGET TO ENABLE ME !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | |
# runs-on: ubuntu-18.04 | |
# steps: | |
# | |
# - name: Checkout | |
# uses: actions/checkout@v2 | |
# with: | |
# fetch-depth: 0 | |
# | |
# - name: Use Node.js ${{matrix.node-version }} | |
# uses: actions/setup-node@v1 | |
# with: | |
# node-version: ${{matrix.node-version }} | |
# | |
# - name: Install | |
# run: yarn --frozen-lockfile | |
# | |
# - name: Release | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
# run: npx semantic-release -d |