Skip to content

Commit

Permalink
ci: init
Browse files Browse the repository at this point in the history
  • Loading branch information
axelrindle committed Aug 19, 2024
1 parent 3663e48 commit 3c391da
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.yml]
indent_size = 2
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: CI

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: oven-sh/setup-bun@v2
with:
bun-version: latest

- uses: actions/cache/restore@v4
id: cache
with:
path: node_modules
key: ${{ runner.os }}-${{ hashFiles('bun.lockb') }}

- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: bun install --frozen-lockfile

- uses: actions/cache/save@v4
if: steps.cache.outputs.cache-hit != 'true'
with:
path: node_modules
key: ${{ runner.os }}-${{ hashFiles('bun.lockb') }}

- name: Lint
run: bunx eslint

0 comments on commit 3c391da

Please sign in to comment.