-
Notifications
You must be signed in to change notification settings - Fork 303
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1797 from nodeSolidServer/basic-prep
Basic prep
- Loading branch information
Showing
24 changed files
with
1,409 additions
and
893 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 |
---|---|---|
|
@@ -17,17 +17,30 @@ jobs: | |
|
||
strategy: | ||
matrix: | ||
node-version: [18.x] | ||
node-version: [ '>=20.17.0' ] | ||
os: [ubuntu-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
|
||
# extract repository name | ||
- if: github.event_name == 'pull_request' | ||
run: echo "REPO_NAME=${{ github.event.pull_request.head.repo.full_name }}" >> $GITHUB_ENV | ||
|
||
- if: github.event_name != 'pull_request' | ||
run: echo "REPO_NAME=${GITHUB_REPOSITORY}" >> $GITHUB_ENV | ||
|
||
# extract branch name | ||
- if: github.event_name == 'pull_request' | ||
run: echo "BRANCH_NAME=${GITHUB_HEAD_REF}" >> $GITHUB_ENV | ||
|
||
- if: github.event_name != 'pull_request' | ||
run: echo "BRANCH_NAME=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV | ||
|
||
# print repository name | ||
- name: Get repository name | ||
run: echo 'The repository name is' $REPO_NAME | ||
|
||
# print branch name | ||
- name: Get branch name | ||
run: echo 'The branch name is' $BRANCH_NAME | ||
|
@@ -40,12 +53,12 @@ jobs: | |
# test code | ||
- run: npm run standard | ||
- run: npm run validate | ||
- run: npm run nyc | ||
- run: npm run c8 | ||
# Test global install of the package | ||
- run: npm pack . | ||
- run: npm install -g solid-server-*.tgz | ||
# Run the Solid test-suite | ||
- run: bash test/surface/run-solid-test-suite.sh $BRANCH_NAME | ||
- run: bash test/surface/run-solid-test-suite.sh $BRANCH_NAME $REPO_NAME | ||
|
||
# TODO: The pipeline should automate publication to npm, so that the docker build gets the correct version | ||
# This job will only dockerize solid-server@latest / solid-server@<tag-name> from npmjs.com! | ||
|
@@ -56,7 +69,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: olegtarasov/[email protected] | ||
id: tagName | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/usr/bin/env node | ||
#!/usr/bin/env -S node --experimental-require-module | ||
const startCli = require('./lib/cli') | ||
startCli() |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/usr/bin/env node | ||
#!/usr/bin/env -S node --experimental-require-module | ||
const startCli = require('./lib/cli') | ||
startCli() |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM node:16-alpine | ||
FROM node:20-alpine | ||
|
||
# hadolint ignore=DL3018 | ||
RUN apk add --no-cache openssl | ||
|
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
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.