mirror of
https://github.com/actions/container-toolkit-action.git
synced 2025-12-10 11:56:49 +00:00
Fix linting errors
This commit is contained in:
11
.github/workflows/linter.yml
vendored
11
.github/workflows/linter.yml
vendored
@@ -23,6 +23,17 @@ jobs:
|
|||||||
id: checkout
|
id: checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup Node.js
|
||||||
|
id: setup-node
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 20
|
||||||
|
cache: npm
|
||||||
|
|
||||||
|
- name: Install Dependencies
|
||||||
|
id: install
|
||||||
|
run: npm ci
|
||||||
|
|
||||||
- name: Lint Code Base
|
- name: Lint Code Base
|
||||||
id: super-linter
|
id: super-linter
|
||||||
uses: super-linter/super-linter/slim@v5
|
uses: super-linter/super-linter/slim@v5
|
||||||
|
|||||||
@@ -1,10 +1,12 @@
|
|||||||
# Set the base image to use for subsequent instructions
|
# Set the base image to use for subsequent instructions
|
||||||
FROM node:slim
|
FROM node:slim
|
||||||
|
|
||||||
|
# Create a directory for the action code
|
||||||
|
RUN mkdir -p /usr/src/app
|
||||||
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
# Copy the repository contents to the container
|
# Copy the repository contents to the container
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# RUN npm install --production
|
|
||||||
|
|
||||||
# Run the specified command within the container
|
# Run the specified command within the container
|
||||||
ENTRYPOINT ["node", "/dist/index.js"]
|
ENTRYPOINT ["node", "/usr/src/app/dist/index.js"]
|
||||||
|
|||||||
Reference in New Issue
Block a user