Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
- Use "npm ci" to use the versions specified in package-lock.json
- Cleanup, use checkout@v3
  • Loading branch information
lslezak committed Oct 20, 2023
1 parent b543fe2 commit 2fb8b94
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,15 @@ jobs:
steps:

- name: Git Checkout
uses: actions/checkout@v2

- name: Git Fix
# fix the ownership to pass a git security check
run: chown "$UID" .
uses: actions/checkout@v3

- name: Prepare System
run: zypper --non-interactive in --no-recommends breeze5-icons npm-default
run: zypper --non-interactive in --no-recommends breeze5-icons npm18

# if the included files are not up to date and there is a change in the
# generated file then the package build later fails
- name: Build QSS and CSS files
# reset possible package-lock changes
run: rake generate && git checkout src/package-lock.json
run: rake generate

- name: Stylelint
run: cd src && npx gulp lint
Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ task :generate do
end

Dir.chdir("src") do
system("npm install") unless File.exist?("node_modules")
system("npm ci") unless File.exist?("node_modules")
system("npx gulp")
end
end
Expand Down

0 comments on commit 2fb8b94

Please sign in to comment.