Skip to content

Commit

Permalink
changed apprentice-action to a composit reusable action (#74)
Browse files Browse the repository at this point in the history
cleaned up Dockerfile and build.yaml since switching to composit action
  • Loading branch information
jburns24 authored Apr 11, 2024
1 parent 0381740 commit 5d1fa21
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
15 changes: 0 additions & 15 deletions apprentice-action/Dockerfile

This file was deleted.

11 changes: 9 additions & 2 deletions apprentice-action/action.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 5d1fa21

Please sign in to comment.