Skip to content

Commit

Permalink
Merge pull request #11 from dxw/correct-script-folder-name
Browse files Browse the repository at this point in the history
Fix CI
  • Loading branch information
richpjames authored Sep 5, 2024
2 parents 2ff9a9e + eebf16e commit ecd0e38
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
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

0 comments on commit ecd0e38

Please sign in to comment.