Skip to content

Commit a75a3a3

Browse files
authored
Update language detector and job configurator to add Github Actions support by default (#60)
1 parent c80296e commit a75a3a3

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Changed
11+
12+
- Updated language detector to add Github Actions support by default
13+
1014
## [2.0.1]
1115

1216
### Fixed

packages/language-detector/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Changed
11+
12+
- Updated job configurator to add Github Actions support by default
13+
1014
## [2.0.1]
1115

1216
### Fixed

packages/language-detector/src/job-configurator.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ const DEFAULT_CONFIGS = {
3636
cpp: { language: 'cpp' },
3737
csharp: { language: 'csharp' },
3838
ruby: { language: 'ruby' },
39+
actions: { language: 'actions' },
3940
};
4041

4142
/**
@@ -89,8 +90,8 @@ export function createMatrix(detectedLanguages, languagesConfig = []) {
8990
console.error('Auto-detected languages:', detectedLanguages);
9091
console.error('Provided custom configs:', languagesConfig);
9192

92-
// Remove duplicates from detected languages
93-
const uniqueLanguages = [...new Set(detectedLanguages)];
93+
// Remove duplicates from detected languages and always add 'actions'
94+
const uniqueLanguages = [...new Set([...detectedLanguages, 'actions'])];
9495

9596
for (const lang of uniqueLanguages) {
9697
// Check for custom config that matches this language

0 commit comments

Comments
 (0)