Skip to content

Commit

Permalink
Merge branch 'main' into fix/dld-entry-requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
kksteini authored Jul 3, 2024
2 parents 4e24e04 + ee2100d commit eed72ae
Show file tree
Hide file tree
Showing 567 changed files with 6,309 additions and 6,604 deletions.
10 changes: 7 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"error",
{
"enforceBuildableLibDependency": true,
"allow": [],
"allow": ["infra/src/dsl/"],
"depConstraints": [
{
"sourceTag": "*",
Expand Down Expand Up @@ -318,13 +318,17 @@
{
"allowSingleExtends": true
}
]
],
"no-extra-semi": "off"
}
},
{
"files": ["*.js", "*.jsx"],
"extends": ["plugin:@nx/javascript"],
"rules": {}
"rules": {
"@typescript-eslint/no-extra-semi": "error",
"no-extra-semi": "off"
}
},
{
"files": ["schema.d.ts"],
Expand Down
25 changes: 12 additions & 13 deletions .github/actions/ci-io.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { Octokit } from '@octokit/rest'
import { Endpoints } from '@octokit/types'
import Debug from 'debug'
import * as unzipper from 'unzipper'

const app = Debug('change-detection:io')

const repository = process.env.GITHUB_REPOSITORY || 'island-is/island.is'
Expand Down Expand Up @@ -44,6 +45,7 @@ export const chunk = <ElementType>(arr: ElementType[], size: number) =>

export class LocalRunner implements GitActionStatus {
constructor(private octokit: Octokit) {}

async getChangedComponents(
git: SimpleGit,
sha1: string,
Expand All @@ -70,8 +72,9 @@ export class LocalRunner implements GitActionStatus {
`npx`,
[
`nx`,
`print-affected`,
`--select=projects`,
`show`,
`projects`,
`--affected`,
...chunk(changedFiles, 20).map(
(chunk) => `--files=${chunk.join(',')}`,
),
Expand All @@ -84,22 +87,18 @@ export class LocalRunner implements GitActionStatus {
)
if (printAffected.status !== 0) {
log(
`Error running nx print-affected. Error is %O, stderr is %O`,
`Error running nx show projects --affected. Error is %O, stderr is %O`,
printAffected.error,
printAffected.stderr,
)
printAffected = spawnSync(
`npx`,
[`nx`, `print-affected`, `--select=projects`, '--all'],
{
encoding: 'utf-8',
cwd: git.cwd,
shell: git.shell,
},
)
printAffected = spawnSync(`npx`, [`nx`, `show`, `projects`, '--all'], {
encoding: 'utf-8',
cwd: git.cwd,
shell: git.shell,
})
if (printAffected.status !== 0) {
log(
`Error running print-affected --all. Error is %O\nstderr: %O\nstdout: %O`,
`Error running show projects --all. Error is %O\nstderr: %O\nstdout: %O`,
printAffected.stderr,
printAffected.stdout,
)
Expand Down
Loading

0 comments on commit eed72ae

Please sign in to comment.