Skip to content

chore(deps): update nrwl monorepo to v17 (major) - autoclosed #3669

chore(deps): update nrwl monorepo to v17 (major) - autoclosed

chore(deps): update nrwl monorepo to v17 (major) - autoclosed #3669

Workflow file for this run

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: [ 17.x ]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js ${{matrix.node-version }}
uses: actions/setup-node@v3
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@v3
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: [ 16.x ]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js ${{matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{matrix.node-version }}
- uses: actions/download-artifact@v3
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
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