Skip to content

Commit e040777

Browse files
committed
[ CI ] enable CI
1 parent 31bfe74 commit e040777

File tree

4 files changed

+78
-0
lines changed

4 files changed

+78
-0
lines changed

.github/linters/.ecrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"Disable": {
3+
"IndentSize": true
4+
}
5+
}

.github/linters/.jscpd.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"threshold": 90,
3+
"reporters": ["consoleFull"],
4+
"ignore": ["**/__snapshots__/**", "**/node_modules/**"],
5+
"absolute": true
6+
}

.github/workflows/ci-lib.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
name: Build
3+
4+
on:
5+
push:
6+
branches:
7+
- '**'
8+
tags:
9+
- '**'
10+
pull_request:
11+
branches:
12+
- main
13+
14+
defaults:
15+
run:
16+
shell: bash
17+
18+
jobs:
19+
build:
20+
name: Build ${{ github.repository }} with Idris2 latest
21+
runs-on: ubuntu-latest
22+
env:
23+
PACK_DIR: /root/.pack
24+
strategy:
25+
fail-fast: false
26+
container: ghcr.io/stefan-hoeck/idris2-pack:latest
27+
steps:
28+
- name: Checkout
29+
uses: actions/checkout@v2
30+
- name: Build lib
31+
run: pack --no-prompt install scgi
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
name: Lint
3+
4+
on:
5+
push:
6+
branches:
7+
- '*'
8+
tags:
9+
- '*'
10+
pull_request:
11+
branches:
12+
- main
13+
- master
14+
15+
permissions: {}
16+
17+
jobs:
18+
build:
19+
name: Lint Code Base
20+
runs-on: ubuntu-latest
21+
steps:
22+
23+
- name: Checkout
24+
uses: actions/checkout@v4
25+
with:
26+
# Full git history is needed to get a proper list of changed files within `super-linter`
27+
fetch-depth: 0
28+
29+
- name: Lint Code Base
30+
uses: github/super-linter/slim@v6
31+
env:
32+
VALIDATE_ALL_CODEBASE: false
33+
VALIDATE_CLANG_FORMAT: false
34+
DEFAULT_BRANCH: main
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
IGNORE_GENERATED_FILES: true

0 commit comments

Comments
 (0)