Skip to content

Commit 47d2a43

Browse files
committed
ci: simplify container jobs
The list of the changes is the following. * Transformed `--no-install-recommends` and `--no-install-suggests` into `apt-get` configuration options to bring them into `apt-get` commands run by the `setup-tarantool` action. It reduces a list of installed dependencies and, so, reduces a size of the cache file (~200MB to ~30MB). * Eliminated `apt-get upgrade`, because I see no reason to perform it. Kept `apt-get update` (refreshing of repositories metadata). * Eliminated the `tzdata` package installation, because, it seems, it is not used anywhere later (and will be pulled as a dependency if actually needed). * Clarified the `setup-node` invocation to make it clear that it is not a required step for using the setup-tarantool action is a container job. * Updated setup-node action to v4, updated nodejs version to 20. Part of #47
1 parent ab69f56 commit 47d2a43

File tree

1 file changed

+21
-9
lines changed

1 file changed

+21
-9
lines changed

.github/workflows/test-docker.yml

+21-9
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,32 @@ jobs:
3232
env:
3333
TARANTOOL_CACHE_KEY_SUFFIX: -DA-${{ matrix.image }}-${{ github.run_id }}
3434
DEBIAN_FRONTEND: noninteractive
35-
TZ: Etc/UTC
3635

3736
steps:
38-
- name: Setup system
37+
- name: Configure apt-get
3938
run: |
40-
apt-get -y update
41-
apt-get -y upgrade
42-
apt-get -y install --no-install-recommends --no-install-suggests \
43-
tzdata sudo lsb-release gnupg ca-certificates rsync
39+
mkdir -p /etc/apt/apt.conf.d
40+
printf '%s\n%s\n' \
41+
'APT::Install-Recommends "false";' \
42+
'APT::Install-Suggests "false";' \
43+
> /etc/apt/apt.conf.d/no-recommends-no-suggests.conf
4444
45-
- name: Setup nodejs
46-
uses: actions/setup-node@v3
45+
- name: Install setup-tarantool dependencies
46+
run: |
47+
apt-get -y update
48+
apt-get -y install sudo lsb-release gnupg ca-certificates rsync
49+
50+
# Bring `node` executable file into PATH for latest-version
51+
# and verify-versions actions.
52+
#
53+
# It is not needed for a usual usage of the setup-tarantool
54+
# action within a container job, because GitHub Action
55+
# runner mounts a volume with a `node` executable into the
56+
# container.
57+
- name: Setup Node.js
58+
uses: actions/setup-node@v4
4759
with:
48-
node-version: '18.18.0'
60+
node-version: 20
4961

5062
- uses: actions/checkout@v4
5163

0 commit comments

Comments
 (0)