diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index cf8ccc6..b8b4a37 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - action: ['conventional-pr-title', 'apprentice-action'] + action: ['conventional-pr-title'] steps: - name: Checkout uses: actions/checkout@v2 diff --git a/apprentice-action/Dockerfile b/apprentice-action/Dockerfile deleted file mode 100644 index c8a39e0..0000000 --- a/apprentice-action/Dockerfile +++ /dev/null @@ -1,15 +0,0 @@ -ARG NODE_TAG=16-alpine -FROM node:${NODE_TAG} as builder -WORKDIR /action -COPY package.json yarn.lock ./ -RUN yarn install --production -COPY index.js ./ -COPY tests/ ./tests - -### - -FROM node:${NODE_TAG} -LABEL org.opencontainers.image.source=https://github.com/liatrio/github-actions -WORKDIR /action -COPY --from=builder /action . -ENTRYPOINT ["node", "/action/index.js"] diff --git a/apprentice-action/action.yaml b/apprentice-action/action.yaml index 0c56ea8..0dcc9e9 100644 --- a/apprentice-action/action.yaml +++ b/apprentice-action/action.yaml @@ -1,5 +1,12 @@ name: Apprenticeship App Unit Tests description: Tests the behavior of the developed web app runs: - using: docker - image: docker://ghcr.io/liatrio/github-actions/apprentice-action:latest + using: composite + steps: + - uses: actions/setup-node@v3 + with: + node-version: '16' + - run: cd $GITHUB_ACTION_PATH && npm install --production + shell: bash + - run: node $GITHUB_ACTION_PATH/index.js + shell: bash