Skip to content

Commit

Permalink
fix(rules): add AtlasGo
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Oct 12, 2023
1 parent 51e2a50 commit 127745b
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/rules/__snapshots__/index.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ exports[`all > should match everything 1`] = `
"apache_storm",
"apiplatform",
"appveyor",
"atlasgo",
"atlassian",
"auth0",
"aws",
Expand Down
6 changes: 6 additions & 0 deletions src/rules/spec/docker/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ exports[`docker > should match everything 1`] = `
"apache_kafka",
"apache_spark",
"apache_storm",
"atlasgo",
"aws",
"aws.dynamodb",
"aws.lambda",
Expand Down Expand Up @@ -129,6 +130,11 @@ exports[`docker > should match everything 2`] = `
"apache/storm",
"0.0.0",
],
[
"docker",
"arigaio/atlas",
"0.0.0",
],
[
"docker",
"atlassian/jira-software",
Expand Down
20 changes: 20 additions & 0 deletions src/rules/spec/githubActions/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,26 @@ exports[`docker > should match all dependencies 2`] = `
"appleboy/telegram-action",
"1",
],
[
"githubAction",
"ariga/atlas-action/migrate/apply",
"1",
],
[
"githubAction",
"ariga/atlas-action/migrate/lint",
"1",
],
[
"githubAction",
"ariga/atlas-action/migrate/push",
"1",
],
[
"githubAction",
"ariga/setup-atlas",
"1",
],
[
"githubAction",
"atlassian/gajira-cli",
Expand Down
15 changes: 15 additions & 0 deletions src/rules/tool/atlasgo.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { register } from '../../register.js';

register({
tech: 'atlasgo',
name: 'AtlasGo',
type: 'tool',
files: ['schema.hcl'],
dependencies: [
{ type: 'docker', name: 'arigaio/atlas' },
{ type: 'githubAction', name: 'ariga/setup-atlas' },
{ type: 'githubAction', name: 'ariga/atlas-action/migrate/lint' },
{ type: 'githubAction', name: 'ariga/atlas-action/migrate/push' },
{ type: 'githubAction', name: 'ariga/atlas-action/migrate/apply' },
],
});
1 change: 1 addition & 0 deletions src/rules/tool/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import './ansible.js';
import './apiplatform.js';
import './atlasgo.js';
import './checkov.js';
import './gitlab.js';
import './goacmelego.js';
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export type AllowedKeys =
| 'apache_storm'
| 'apiplatform'
| 'appveyor'
| 'atlasgo'
| 'atlassian'
| 'auth0'
| 'aws.amplifyhosting'
Expand Down

0 comments on commit 127745b

Please sign in to comment.