-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CI File with Basic Lint (i.e. Prettier) (#20)
Introducing some moderate CI. This requires linting with prettier. In a follow up I will, introduce eslint.
- Loading branch information
Showing
21 changed files
with
793 additions
and
617 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Node.js CI | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
types: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: "20" | ||
|
||
- name: Install Bun | ||
run: | | ||
curl -fsSL https://bun.sh/install | bash | ||
export PATH="$HOME/.bun/bin:$PATH" | ||
- name: Cache node modules | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
node_modules | ||
~/.bun/install/cache | ||
key: ${{ runner.os }}-bun-${{ hashFiles('bun.lockb') }} | ||
restore-keys: | | ||
${{ runner.os }}-bun- | ||
- name: Install, Lint & Build | ||
run: | | ||
export PATH="$HOME/.bun/bin:$PATH" | ||
bun install --frozen-lockfile | ||
bun lint | ||
bun run build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.