Skip to content

Commit

Permalink
build: work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
khalilou88 committed Oct 15, 2024
1 parent 5e85ddc commit a2e4472
Show file tree
Hide file tree
Showing 13 changed files with 36 additions and 11 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/smoke-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@ name: Smoke plugin tests
on:
workflow_dispatch:
inputs:
tag_option:
type: choice
description: tag option
options:
- latest
- previous
- next
nx_tag_option:
type: choice
description: nx tag option
options:
- latest
- previous
- next
t_option:
type: choice
description: t option
Expand Down Expand Up @@ -34,6 +48,9 @@ jobs:
java: ['17']
fail-fast: true
runs-on: ${{ github.event.inputs.os }}
env:
NPM_TAG: ${{ github.event.inputs.tag_option }}
NX_NPM_TAG: ${{ github.event.inputs.nx_tag_option }}
steps:
- name: Check out repository code
uses: actions/checkout@v4
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ on:
- latest
- previous
- next
nx_tag_option:
type: choice
description: nx tag option
options:
- latest
- previous
- next
schedule:
- cron: '0 0 * * *'

Expand All @@ -27,6 +34,7 @@ jobs:
env:
NX_RUN_GROUP: ${{ github.run_id }}-v${{matrix.java}}
NPM_TAG: ${{ github.event.inputs.tag_option }}
NX_NPM_TAG: ${{ github.event.inputs.nx_tag_option }}
steps:
- uses: actions/checkout@v4

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ describe('nx-gradle spring-boot smoke-affected', () => {

it('should work', async () => {
execSync(
'npx create-nx-workspace@latest test --preset apps --nxCloud skip',
`npx create-nx-workspace@${process.env.NX_NPM_TAG} test --preset apps --nxCloud skip`,
{
cwd: smokeDirectory,
env: process.env,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ describe('nx-maven spring-boot smoke-affected', () => {

it('should work', async () => {
execSync(
'npx create-nx-workspace@latest test --preset apps --nxCloud skip',
`npx create-nx-workspace@${process.env.NX_NPM_TAG} test --preset apps --nxCloud skip`,
{
cwd: smokeDirectory,
env: process.env,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ describe('nx-gradle spring-boot smoke-next', () => {
it('should work', async () => {
if (ifNextVersionExists()) {
execSync(
'npx create-nx-workspace@latest test --preset apps --nxCloud skip',
`npx create-nx-workspace@${process.env.NX_NPM_TAG} test --preset apps --nxCloud skip`,
{
cwd: smokeDirectory,
env: process.env,
Expand Down
2 changes: 1 addition & 1 deletion testing-projects/jnxplus-smoke-next/tests/nx-maven.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ describe('nx-maven spring-boot smoke-next', () => {
it('should work', async () => {
if (ifNextVersionExists()) {
execSync(
'npx create-nx-workspace@latest test --preset apps --nxCloud skip',
`npx create-nx-workspace@${process.env.NX_NPM_TAG} test --preset apps --nxCloud skip`,
{
cwd: smokeDirectory,
env: process.env,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe('nx-gradle micronaut smoke', () => {

it('should work', async () => {
execSync(
'npx create-nx-workspace@latest test --preset apps --nxCloud skip',
`npx create-nx-workspace@${process.env.NX_NPM_TAG} test --preset apps --nxCloud skip`,
{
cwd: smokeDirectory,
env: process.env,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe('nx-gradle default smoke', () => {

it('should work', async () => {
execSync(
'npx create-nx-workspace@latest test --preset apps --nxCloud skip',
`npx create-nx-workspace@${process.env.NX_NPM_TAG} test --preset apps --nxCloud skip`,
{
cwd: smokeDirectory,
env: process.env,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe('nx-gradle quarkus smoke', () => {

it('should work', async () => {
execSync(
'npx create-nx-workspace@latest test --preset apps --nxCloud skip',
`npx create-nx-workspace@${process.env.NX_NPM_TAG} test --preset apps --nxCloud skip`,
{
cwd: smokeDirectory,
env: process.env,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ describe('nx-maven micronaut bom smoke', () => {

it('should work', async () => {
execSync(
'npx create-nx-workspace@latest test --preset apps --nxCloud skip',
`npx create-nx-workspace@${process.env.NX_NPM_TAG} test --preset apps --nxCloud skip`,
{
cwd: smokeDirectory,
env: process.env,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ describe('nx-maven quarkus smoke', () => {

it('should work', async () => {
execSync(
'npx create-nx-workspace@latest test --preset apps --nxCloud skip',
`npx create-nx-workspace@${process.env.NX_NPM_TAG} test --preset apps --nxCloud skip`,
{
cwd: smokeDirectory,
env: process.env,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ describe('nx-maven spring-boot bom smoke', () => {

it('should work', async () => {
execSync(
'npx create-nx-workspace@latest test --preset apps --nxCloud skip',
`npx create-nx-workspace@${process.env.NX_NPM_TAG} test --preset apps --nxCloud skip`,
{
cwd: smokeDirectory,
env: process.env,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ describe('nx-maven spring-boot smoke', () => {

it('should work', async () => {
execSync(
'npx create-nx-workspace@latest test --preset apps --nxCloud skip',
`npx create-nx-workspace@${process.env.NX_NPM_TAG} test --preset apps --nxCloud skip`,
{
cwd: smokeDirectory,
env: process.env,
Expand Down

0 comments on commit a2e4472

Please sign in to comment.