Skip to content

Commit 7429ab2

Browse files
committed
ci: update core CI job to use actions/checkout
1 parent bd6554d commit 7429ab2

File tree

1 file changed

+13
-23
lines changed

1 file changed

+13
-23
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Continuos integration
22

33
on:
4+
push:
5+
branches-ignore:
6+
- "dependabot/**"
47
pull_request:
58

69
jobs:
@@ -16,42 +19,29 @@ jobs:
1619
steps:
1720
- uses: actions/checkout@v4
1821

19-
# - name: Cache node modules
20-
# uses: actions/cache@v2
21-
# if: ${{ !env.ACT }}
22-
# env:
23-
# cache-name: cache-node-modules
24-
# with:
25-
# # npm cache files are stored in '~/.npm' on Linux/macOS
26-
# path: ~/.npm
27-
# key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
28-
# restore-keys: |
29-
# ${{ runner.os }}-build-${{ env.cache-name }}-
30-
# ${{ runner.os }}-build-
31-
# ${{ runner.os }}-
32-
3322
- name: Use Node.js ${{ matrix.node-version }}
3423
uses: actions/setup-node@v4
3524
with:
3625
node-version: ${{ matrix.node-version }}
3726
cache: 'npm'
3827

39-
- name: Install dependencies
40-
run: |
41-
npm i -g bower grunt-cli
42-
npm ci
28+
- name: Install Grunt and Bower
29+
run: npm i -g bower grunt-cli --force
30+
31+
- name: Install npm dependencies
32+
run: npm ci
4333

4434
- name: Copy the missing _sprite_share.scss file - related to GCWeb#1737 about wet-boew#cc340a6 commit
4535
run: |
4636
curl https://gist.githubusercontent.com/duboisp/d69787b300eb1f4d40f937508e10d013/raw/2c25ce9ff228394e626404a35c62f7bc047b13e7/_sprites_share.scss >> _sprites_share.scss
4737
mv _sprites_share.scss node_modules/wet-boew/src/plugins/share/sprites/_sprites_share.scss
4838
49-
- name: Checkout wet-boew latest build
39+
- uses: actions/checkout@v4
5040
if: ${{ env.ACT }}
51-
run: |
52-
git clone --depth 1 https://github.com/wet-boew/wet-boew-cdn.git --branch v4.0-dist ~wet-boew-cdn
53-
mkdir -p node_modules/wet-boew/dist/wet-boew
54-
mv ~wet-boew-cdn/* node_modules/wet-boew/dist/wet-boew
41+
with:
42+
repository: wet-boew/wet-boew-cdn
43+
ref: v4.0-dist
44+
path: node_modules/wet-boew/dist/wet-boew
5545

5646
- name: Build GCWeb
5747
if: ${{ !env.ACT }}

0 commit comments

Comments
 (0)