Skip to content

Commit

Permalink
Merge branch 'main' of github.com:island-is/island.is into j-s/prison…
Browse files Browse the repository at this point in the history
…-indictments
  • Loading branch information
oddsson committed Jul 4, 2024
2 parents e789d32 + 2ca7aa6 commit df23682
Show file tree
Hide file tree
Showing 697 changed files with 11,300 additions and 8,051 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 df23682

Please sign in to comment.