Skip to content
This repository has been archived by the owner on Oct 3, 2024. It is now read-only.

Commit

Permalink
Add ruling tests to handle eslint 8 and 9 (#468)
Browse files Browse the repository at this point in the history
  • Loading branch information
zglicz authored May 2, 2024
1 parent 33869d1 commit 1efe2da
Show file tree
Hide file tree
Showing 8 changed files with 552 additions and 48 deletions.
30 changes: 29 additions & 1 deletion .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ publish_task:
publish_script:
- ./scripts/publish.sh

qa_task:
qa_eslint8_task:

Check warning on line 64 in .cirrus.yml

View check run for this annotation

Cirrus CI / Build Parsing Results

.cirrus.yml#L64

task "qa_eslint8" depends on task "build", but their only_if conditions are different

Check warning on line 64 in .cirrus.yml

View check run for this annotation

Cirrus CI / Build Parsing Results

.cirrus.yml#L64

task "qa_eslint8" depends on task "build", but their only_if conditions are different

Check warning on line 64 in .cirrus.yml

View check run for this annotation

Cirrus CI / Build Parsing Results

.cirrus.yml#L64

task "qa_eslint8" depends on task "build", but their only_if conditions are different

Check warning on line 64 in .cirrus.yml

View check run for this annotation

Cirrus CI / Build Parsing Results

.cirrus.yml#L64

task "qa_eslint8" depends on task "build", but their only_if conditions are different

Check warning on line 64 in .cirrus.yml

View check run for this annotation

Cirrus CI / Build Parsing Results

.cirrus.yml#L64

task "qa_eslint8" depends on task "build", but their only_if conditions are different

Check warning on line 64 in .cirrus.yml

View check run for this annotation

Cirrus CI / Build Parsing Results

.cirrus.yml#L64

task "qa_eslint8" depends on task "build", but their only_if conditions are different
depends_on:
- build
eks_container:
Expand All @@ -87,6 +87,34 @@ qa_task:
- jfrog rt npm-config --repo-resolve npm --repo-deploy sonarsource-npm-public-qa
- git submodule update --init --depth 1 -r
- jfrog rt npm-ci
- npm install eslint-ruling@npm:eslint@8.57.0
- npm run build
- npm run ruling

qa_eslint9_task:

Check warning on line 94 in .cirrus.yml

View check run for this annotation

Cirrus CI / Build Parsing Results

.cirrus.yml#L94

task "qa_eslint9" depends on task "build", but their only_if conditions are different

Check warning on line 94 in .cirrus.yml

View check run for this annotation

Cirrus CI / Build Parsing Results

.cirrus.yml#L94

task "qa_eslint9" depends on task "build", but their only_if conditions are different

Check warning on line 94 in .cirrus.yml

View check run for this annotation

Cirrus CI / Build Parsing Results

.cirrus.yml#L94

task "qa_eslint9" depends on task "build", but their only_if conditions are different

Check warning on line 94 in .cirrus.yml

View check run for this annotation

Cirrus CI / Build Parsing Results

.cirrus.yml#L94

task "qa_eslint9" depends on task "build", but their only_if conditions are different
depends_on:
- build
eks_container:
matrix:
- docker_arguments:
NODE_VERSION: 18
CIRRUS_AWS_ACCOUNT: ${CIRRUS_AWS_ACCOUNT}
- docker_arguments:
NODE_VERSION: 20
CIRRUS_AWS_ACCOUNT: ${CIRRUS_AWS_ACCOUNT}
<<: *CONTAINER_DEFINITION
cpu: 3
memory: 8G
env:
SONARSOURCE_QA: true
node_version_script:
- node --version
script:
- jfrog config add repox --url $ARTIFACTORY_URL --access-token $ARTIFACTORY_DEPLOY_ACCESS_TOKEN
- jfrog rt npm-config --repo-resolve npm --repo-deploy sonarsource-npm-public-qa
- git submodule update --init --depth 1 -r
- jfrog rt npm-ci
- npm install eslint-ruling@npm:eslint@9.1.0
- npm run build
- npm run ruling

Expand Down
Loading

0 comments on commit 1efe2da

Please sign in to comment.