Skip to content

Commit 6c2488d

Browse files
committed
basic tests
1 parent 99401fa commit 6c2488d

File tree

5 files changed

+80
-0
lines changed

5 files changed

+80
-0
lines changed

.cspell/dictionary

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
goharbor
2+
testuser
3+
testpass
4+
testrepo
5+
cachedrepo

.github/workflows/ci.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: CI
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-24.04
8+
strategy:
9+
matrix:
10+
node-version: [20.x, 22.x]
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Use Node.js ${{ matrix.node-version }}
14+
uses: actions/setup-node@v4
15+
with:
16+
node-version: ${{ matrix.node-version }}
17+
- run: yarn install
18+
- run: yarn lint
19+
- run: yarn test

.github/workflows/cspell.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: 'Check spelling'
2+
on:
3+
pull_request:
4+
push:
5+
6+
jobs:
7+
spellcheck:
8+
runs-on: ubuntu-24.04
9+
steps:
10+
- uses: actions/checkout@v4
11+
- uses: streetsidesoftware/cspell-action@v6
12+
with:
13+
files: src/**/*.{ts,js,tsx}
14+
incremental_files_only: false

.github/workflows/semgrep.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Semgrep OSS scan
2+
3+
on:
4+
pull_request: {}
5+
workflow_dispatch: {}
6+
push:
7+
branches: ["main"]
8+
jobs:
9+
semgrep:
10+
name: semgrep-oss/scan
11+
runs-on: ubuntu-24.04
12+
container:
13+
image: semgrep/semgrep
14+
# Skip any PR created by dependabot to avoid permission issues:
15+
if: (github.actor != 'dependabot[bot]')
16+
steps:
17+
- uses: actions/checkout@v4
18+
- run: semgrep scan --config auto

cspell.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"version": "0.2",
3+
"ignorePaths": [
4+
"**/images/**"
5+
],
6+
"dictionaryDefinitions": [
7+
{
8+
"name": "dictionary",
9+
"path": "./.cspell/dictionary",
10+
"addWords": true
11+
}
12+
],
13+
"dictionaries": [
14+
"dictionary",
15+
"html",
16+
"typescript",
17+
"javascript"
18+
],
19+
"words": [],
20+
"ignoreWords": [],
21+
"import": [],
22+
"language": "en,en-GB",
23+
"useGitignore": true
24+
}

0 commit comments

Comments
 (0)