-
Notifications
You must be signed in to change notification settings - Fork 52
/
create-action.test.js.snap
55 lines (44 loc) 路 1.47 KB
/
create-action.test.js.snap
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`creates project with labels passed to Dockerfile from questionnaire: Dockerfile 1`] = `
# Use the latest version of Node.js
#
# You may prefer the full image:
# FROM node
#
# or even an alpine image (a smaller, faster, less-feature-complete image):
# FROM node:alpine
#
# You can specify a version:
# FROM node:10-slim
FROM node:slim
# Labels for GitHub to read your action
LABEL "com.github.actions.name"="My Project Name"
LABEL "com.github.actions.description"="A cool project"
# Here are all of the available icons: https://feathericons.com/
LABEL "com.github.actions.icon"="anchor"
# And all of the available colors: https://developer.github.com/actions/creating-github-actions/creating-a-docker-container/#label
LABEL "com.github.actions.color"="blue"
# Copy the package.json and package-lock.json
COPY package*.json ./
# Install dependencies
RUN npm ci
# Copy the rest of your action's code
COPY . .
# Run \`node /entrypoint.js\`
ENTRYPOINT ["node", "/entrypoint.js"]
`;
exports[`creates project with labels passed to Dockerfile from questionnaire: entrypoint.js 1`] = `
const { Toolkit } = require('actions-toolkit')
const tools = new Toolkit()
console.log(tools.arguments)
`;
exports[`creates project with labels passed to Dockerfile from questionnaire: package.json 1`] = `
{
"name": "my-project-name",
"private": true,
"main": "index.js",
"dependencies": {
"actions-toolkit": "^1.0.0-static-version-for-test"
}
}
`;