Skip to content

Commit

Permalink
ci: improve setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Apr 7, 2022
1 parent ff2f487 commit 39c633e
Show file tree
Hide file tree
Showing 3 changed files with 368 additions and 396 deletions.
33 changes: 9 additions & 24 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,37 +1,22 @@
# http://editorconfig.org

root = true

[*]
indent_style = tab
indent_size = 4
tab_width = 4
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 80
indent_brace_style = 1TBS
spaces_around_operators = true
quote_type = auto

[{*.json,*.json.example,*.gyp,*.yml,*.yaml,*.workflow}]
[package.json]
indent_style = space
indent_size = 2

[{*.py,*.asm}]
indent_style = space

[*.py]
indent_size = 4

[*.asm]
indent_size = 8

[*.md]
trim_trailing_whitespace = false

# Ideal settings - some plugins might support these.
[*.js]
quote_type = single

[{*.c,*.cc,*.h,*.hh,*.cpp,*.hpp,*.m,*.mm,*.mpp,*.js,*.java,*.go,*.rs,*.php,*.ng,*.jsx,*.ts,*.d,*.cs,*.swift}]
curly_bracket_next_line = false
spaces_around_operators = true
spaces_around_brackets = outside
# close enough to 1TB
indent_brace_style = K&R
37 changes: 13 additions & 24 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,16 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v1

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Print Node.js Version
run: node --version

- name: Install Dependencies
run: npm install
env:
CI: true

- name: Run "build" step
run: npm run build --if-present
env:
CI: true

- name: Run tests
run: npm test
env:
CI: true
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}

- name: Install Dependencies
run: npm install --no-package-lock

- name: Run tests
run: npm run build && npm test
Loading

0 comments on commit 39c633e

Please sign in to comment.