File tree Expand file tree Collapse file tree 2 files changed +17
-19
lines changed Expand file tree Collapse file tree 2 files changed +17
-19
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ on: [pull_request]
44
55jobs :
66 docker :
7- runs-on : ubuntu-20 .04
7+ runs-on : ubuntu-22 .04
88 name : Docker
99 steps :
1010 - uses : actions/checkout@v3
@@ -31,28 +31,26 @@ jobs:
3131 - uses : actions/checkout@v3
3232 - uses : actions/setup-node@v3
3333 with :
34- node-version : " 10 "
34+ node-version : " 18 "
3535 - run : npm install -g yarn && yarn install
3636 - name : Install Carton
37- run : >
38- curl -sL https://git.io/cpm | perl -
39- install -g Carton
40- --show-build-log-on-failure
41- - name : Install deps
42- run : >
43- curl -sL https://git.io/cpm | perl -
44- install
45- --cpanfile cpanfile
46- --resolver ${{ matrix.resolver }}
47- --show-build-log-on-failure
48- --local-lib-contained=local
49- if : success()
37+ uses : perl-actions/install-with-cpm@v1
38+ with :
39+ install : Carton
40+ sudo : false
41+ - name : Install CPAN deps
42+ uses : perl-actions/install-with-cpm@v1
43+ with :
44+ cpanfile : " cpanfile "
45+ sudo : false
46+ args : >
47+ --resolver ${{ matrix.resolver }}
48+ --show-build-log-on-failure
49+ --local-lib-contained=local
5050 - name : Maybe update cpanfile.snapshot
5151 run : carton
52- if : success()
5352 - name : Run Tests
5453 run : carton exec prove -lr --jobs 2 t
55- if : success()
5654 env :
5755 TEST_TIDYALL_VERBOSE : 1
5856 - uses : actions/upload-artifact@v3
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ ARG CPM_ARGS=--with-test
44
55SHELL ["/bin/bash" , "-o" , "pipefail" , "-c" ]
66
7- RUN curl -sL https://deb.nodesource.com/setup_10 .x | bash \
7+ RUN curl -sL https://deb.nodesource.com/setup_18 .x | bash \
88 && curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
99 && echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
1010 && apt-get update \
@@ -15,7 +15,7 @@ RUN curl -sL https://deb.nodesource.com/setup_10.x | bash \
1515COPY . /metacpan-web/
1616WORKDIR /metacpan-web
1717
18- RUN yarn install
18+ RUN yarn install --verbose && yarn cache clean
1919
2020RUN cpanm --notest App::cpm \
2121 && cpm install -g Carton \
You can’t perform that action at this time.
0 commit comments