Skip to content

Commit

Permalink
Fix/actions (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
rvalitov authored Dec 5, 2024
1 parent 87019fc commit 4848450
Show file tree
Hide file tree
Showing 3 changed files with 1,034 additions and 1,085 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/hugo.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sample workflow for building and deploying a Hugo site to GitHub Pages
# Workflow for building and deploying a Hugo site to GitHub Pages
name: Deploy

on:
Expand Down Expand Up @@ -26,13 +26,15 @@ defaults:
run:
shell: bash

env:
HUGO_VERSION: 0.139.3
NODE_VERSION: 23.x

jobs:
# Build job
build:
runs-on: ubuntu-latest
env:
HUGO_VERSION: 0.139.3
NODE_VERSION: 23.x

steps:
- name: Install Hugo CLI
run: |
Expand All @@ -44,10 +46,10 @@ jobs:
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Node.js ${{ NODE_VERSION }}
- name: Setup Node.js ${NODE_VERSION}
uses: actions/setup-node@v4
with:
node-version: ${{ NODE_VERSION }}
node-version: ${NODE_VERSION}
cache: 'npm'
- name: Setup Pages
id: pages
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/tests.js.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
# Main test workflow

name: Tests

Expand Down Expand Up @@ -64,10 +63,10 @@ jobs:
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Node.js ${{ NODE_VERSION }}
- name: Setup Node.js ${NODE_VERSION}
uses: actions/setup-node@v4
with:
node-version: ${{ NODE_VERSION }}
node-version: ${NODE_VERSION}
cache: 'npm'
- name: Install Node.js dependencies
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
Expand Down Expand Up @@ -154,10 +153,10 @@ jobs:
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Node.js ${{ NODE_VERSION }}
- name: Setup Node.js ${NODE_VERSION}
uses: actions/setup-node@v4
with:
node-version: ${{ NODE_VERSION }}
node-version: ${NODE_VERSION}
cache: 'npm'
- name: Install Node.js dependencies
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
Expand Down
Loading

0 comments on commit 4848450

Please sign in to comment.