Skip to content

Commit

Permalink
update dependencies (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
levivilet authored Oct 14, 2023
1 parent 376ab68 commit 6841d38
Show file tree
Hide file tree
Showing 8 changed files with 948 additions and 2,788 deletions.
33 changes: 29 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,19 @@ on:
push:
branches:
- main
pull_request:
branches:
- main

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

jobs:
ci:
runs-on: ubuntu-22.04
strategy:
matrix:
os: [ubuntu-22.04]
runs-on: ${{ matrix.os }}
timeout-minutes: 15
steps:
- uses: actions/checkout@v3
Expand All @@ -27,3 +33,22 @@ jobs:
run: npm ci
if: steps.npm-cache.outputs.cache-hit != 'true'
- run: npm test
- name: Build static site
run: node scripts/build-static.js
env:
PATH_PREFIX: auto
- name: Upload artifact
if: matrix.os == 'ubuntu-22.04'
uses: actions/upload-pages-artifact@v1
with:
path: ./dist
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-22.04
needs: ci
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
26 changes: 26 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: PR

on:
pull_request:
branches:
- main

jobs:
pr:
runs-on: ubuntu-22.04
timeout-minutes: 15
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- uses: actions/cache@v3
id: npm-cache
with:
path: '**/node_modules'
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-node-
- name: npm ci
run: npm ci
if: steps.npm-cache.outputs.cache-hit != 'true'
- run: npm test
6 changes: 3 additions & 3 deletions .gitpod.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM gitpod/workspace-full:latest

RUN bash -c ". .nvm/nvm.sh \
&& nvm install 18.7.0 \
&& nvm use 18.7.0 \
&& nvm alias default 18.7.0"
&& nvm install 18.17.1 \
&& nvm use 18.17.1 \
&& nvm alias default 18.17.1"

RUN echo "nvm use default &>/dev/null" >> ~/.bashrc.d/51-nvm-fix
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v18.7.0
v18.17.1
Loading

0 comments on commit 6841d38

Please sign in to comment.