-
Notifications
You must be signed in to change notification settings - Fork 2
33 lines (30 loc) · 860 Bytes
/
Copy pathdocker.yml
File metadata and controls
33 lines (30 loc) · 860 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: docker test
on:
push:
jobs:
nodejs-rootless:
defaults:
run:
working-directory: nodejs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Use Docker in rootless mode.
uses: ScribeMD/rootless-docker@main
- run: npm i
- run: npm test
runner-ubuntu:
runs-on: ubuntu-latest
steps:
- run: sudo curl --unix-socket /var/run/docker.sock http://localhost/_ping
- run: curl https://raw.githubusercontent.com/davidkhala/linux-utils/main/apps/docker/daemon.sh | bash -s expose-http
- run: curl http://localhost:2375/_ping
runner-windows:
runs-on: windows-latest
steps:
- run: docker context inspect default
- uses: actions/checkout@main
- run: npm i
working-directory: nodejs
- run: npm test
working-directory: nodejs