Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CI #11

Merged
merged 7 commits into from
Sep 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,18 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/setup-node@v4
- name: Read .nvmrc
run: echo "{NODE_VERSION}={$(cat .nvmrc)}" >> $GITHUB_OUTPUT
id: nvm
- name: Use Node.js ${{ steps.nvm.outputs.NODE_VERSION }}
uses: actions/setup-node@v2
with:
node-version: 22.7.0
node-version: ${{ steps.nvm.outputs.NODE_VERSION }}
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies
run: |
.script/setup
- name: Run lints
./script/setup
- name: Run lint
run: |
./script/test
6 changes: 5 additions & 1 deletion scripts/bootstrap → script/bootstrap
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

# script/bootstrap: Resolve all dependencies that the application requires to
# run.
Expand All @@ -7,6 +7,10 @@ set -e

cd "$(dirname "$0")/.."


export NVM_DIR=$HOME/.nvm;
source $NVM_DIR/nvm.sh;

echo "==> Installing node version..."
nvm install

Expand Down
2 changes: 1 addition & 1 deletion scripts/server → script/server
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

# script/server: Launch the application

Expand Down
2 changes: 1 addition & 1 deletion scripts/setup → script/setup
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

# script/setup: Set up the application for the first time after cloning, or set
# it back to the initial unused state.
Expand Down
2 changes: 1 addition & 1 deletion scripts/test → script/test
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

# script/test: Run the test suite for the application.

Expand Down
Loading