Skip to content

Commit

Permalink
Merge pull request #1 from idris-community/ci
Browse files Browse the repository at this point in the history
[ CI ] setup CI
  • Loading branch information
stefan-hoeck authored Jan 30, 2023
2 parents 0e3400e + 245241b commit 9fccb8f
Show file tree
Hide file tree
Showing 4 changed files with 120 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# top-most EditorConfig file
root = true

# Defaults for every file
[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8

# Idris source files
[*.{idr,ipkg,tex,yaff,lidr}]
indent_style = space
indent_size = 2

# Various configuration files
[{*.yml,.ecrc}]
indent_style = space
indent_size = 2

[*.py]
indent_style = space
indent_size = 4

[*.{c,h}]
indent_style = space
indent_size = 4

[*.{md,rst}]
indent_style = space
indent_size = 2

[*.sh]
indent_style = space
indent_size = 4
shell_variant = posix
switch_case_indent = true

[*.bat]
indent_style = space
indent_size = 4

[{Makefile,*.mk}]
indent_style = tab

[*.nix]
indent_style = space
indent_size = 2

[expected]
trim_trailing_whitespace = false
5 changes: 5 additions & 0 deletions .github/linters/.ecrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"Disable": {
"IndentSize": true
}
}
32 changes: 32 additions & 0 deletions .github/workflows/ci-lib.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: Build

on:
push:
branches:
- '**'
tags:
- '**'
pull_request:
branches:
- main

defaults:
run:
shell: bash

jobs:

build:
name: Build the lib with Idris2 HEAD
runs-on: ubuntu-latest
env:
PACK_DIR: /root/.pack
strategy:
fail-fast: false
container: ghcr.io/stefan-hoeck/idris2-pack:latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build getopts
run: pack typecheck getopts
32 changes: 32 additions & 0 deletions .github/workflows/ci-super-linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Lint

on:
push:
branches:
- '*'
tags:
- '*'
pull_request:
branches:
- main
- master

jobs:
build:
name: Lint Code Base
runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/checkout@v2
with:
# Full git history is needed to get a proper list of changed files within `super-linter`
fetch-depth: 0

- name: Lint Code Base
uses: github/super-linter/slim@v4
env:
VALIDATE_ALL_CODEBASE: false
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
IGNORE_GENERATED_FILES: true

0 comments on commit 9fccb8f

Please sign in to comment.