Skip to content

Commit

Permalink
Upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
NeftaliYagua committed May 18, 2024
1 parent 18e980a commit d25e780
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/npm-gulp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: NodeJS with Gulp

on:
# Runs on pushes targeting the default branch
push:
branches: ["master"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down Expand Up @@ -52,11 +50,9 @@ jobs:
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Install dependencies
run: npm install --quiet --no-progress --cache=.cache/npm
run: npm install --quiet --no-progress
- name: Build
run: |
node_modules/.bin/gulp
node_modules/.bin/gulp lint
node_modules/.bin/gulp preview:build
node_modules/.bin/gulp bundle:pack
cp build/ui-bundle.zip ./public/
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
name: NodeJS with Gulp

on: pull_request
name: Testing

on:
pull_request:
branches: ["master"]
push:
branches: ["master"]
jobs:
test:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -31,8 +34,7 @@ jobs:
node-version: 20
cache: ${{ steps.detect-package-manager.outputs.manager }}
- name: Install dependencies
run: npm install --quiet --no-progress --cache=.cache/npm
run: npm install --quiet --no-progress
- name: Build
run: |
node_modules/.bin/gulp
node_modules/.bin/gulp lint
2 changes: 1 addition & 1 deletion gulp.d/tasks/build-preview-pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ module.exports = (src, previewSrc, previewDest, sink = () => map()) => (done) =>
)

function loadSampleUiModel (src) {
return fs.readFile(ospath.join(src, 'ui-model.yml'), 'utf8').then((contents) => yaml.safeLoad(contents))
return fs.readFile(ospath.join(src, 'ui-model.yml'), 'utf8').then((contents) => yaml.load(contents))
}

function registerPartials (src) {
Expand Down

0 comments on commit d25e780

Please sign in to comment.