File tree Expand file tree Collapse file tree 4 files changed +8
-21
lines changed Expand file tree Collapse file tree 4 files changed +8
-21
lines changed Original file line number Diff line number Diff line change 34
34
if : github.event_name == 'pull_request'
35
35
- run : make build
36
36
- run : docker images
37
- - run : make ci
38
- - run : make all
39
37
- run : docker-compose push
40
38
if : github.ref == 'refs/heads/main' && github.event.repository.fork == false
Original file line number Diff line number Diff line change 46
46
npm --version
47
47
git --version
48
48
49
- - run : npm ci
49
+ - run : npm ci --ignore-scripts
50
50
51
51
- name : npm audit
52
52
if : startsWith(matrix.os, 'ubuntu-18.04')
Original file line number Diff line number Diff line change @@ -17,13 +17,20 @@ RUN apt-get update && \
17
17
apt-get autoremove -y && \
18
18
rm -rf /var/lib/apt/lists/*
19
19
20
+ RUN git --version && \
21
+ git config --global init.defaultBranch main && \
22
+ git config --global init.defaultBranch
23
+
20
24
WORKDIR /node
21
25
ARG NODE_VERSION
22
26
RUN curl -o nodejs.deb "https://deb.nodesource.com/node_${NODE_VERSION%%.*}.x/pool/main/n/nodejs/nodejs_${NODE_VERSION}-1nodesource1_amd64.deb" && \
23
27
apt-get update && \
24
28
apt-get install -y --no-install-recommends ./nodejs.deb && \
29
+ npm config set user 0 && \
30
+ npm config set unsafe-perm true && \
25
31
npm i -g npm && \
26
32
curl -sL https://deb.nodesource.com/test | bash - && \
33
+ npm cache clean --force && \
27
34
rm -rf /var/lib/apt/lists/* && \
28
35
rm -rf /node
29
36
@@ -46,10 +53,4 @@ ENV RUNNER_USER="runner"
46
53
ENV RUNNER_TEMP="/home/runner/work/_temp"
47
54
ENV RUNNER_WORKSPACE="/home/runner/work/pages"
48
55
49
- RUN echo "node version: $(node -v)" && \
50
- echo "npm version: $(npm -v)" && \
51
- git --version && \
52
- git config --global init.defaultBranch main && \
53
- git config --global init.defaultBranch
54
-
55
56
CMD [ "bash" ]
Original file line number Diff line number Diff line change 8
8
.PHONY : run
9
9
run :
10
10
docker-compose run --rm dev bash
11
-
12
- .PHONY : ci
13
- ci :
14
- docker-compose run --rm -T dev npm ci --unsafe-perm=true --allow-root
15
-
16
- .PHONY : test
17
- test :
18
- docker-compose run --rm -T dev npm test
19
-
20
- .PHONY : all
21
- all :
22
- docker-compose run --rm -T dev npm run all
You can’t perform that action at this time.
0 commit comments