Skip to content

Commit

Permalink
workflow for codescan
Browse files Browse the repository at this point in the history
  • Loading branch information
lorawoodford committed Jan 21, 2025
1 parent 5847ce3 commit c4dd383
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/codescan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Code Scan

on:
pull_request:
branches:
- main
push:

jobs:
backend_plugins:
runs-on: ubuntu-latest
env:
PROD_ARCHIVESSPACE_VERSION: v3.3.1

steps:
- name: Checkout ArchivesSpace
uses: actions/checkout@v4
with:
ref: ${{ env.PROD_ARCHIVESSPACE_VERSION }}
repository: Smithsonian/archivesspace

- name: Checkout plugin
uses: actions/checkout@v4
with:
path: ${{ github.event.repository.name }}

- name: Copy plugin to ArchivesSpace
run: |
cp -r ${{ github.workspace }}/${{ github.event.repository.name }} ${{ github.workspace }}/plugins
- name: Run Rubocop
run: |
./build/run rubocop -Ddir="plugins/${{ github.event.repository.name }}"

0 comments on commit c4dd383

Please sign in to comment.