Skip to content

Commit

Permalink
feat: try using setup script for grading
Browse files Browse the repository at this point in the history
Signed-off-by: Anmol Sharma <[email protected]>
  • Loading branch information
theanmolsharma committed Mar 18, 2024
1 parent 3ab36fa commit 5bedf09
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 20 deletions.
25 changes: 5 additions & 20 deletions .github/workflows/grader.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,11 @@ on:
jobs:
grader:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./grader
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 20.9.x
cache: npm
cache-dependency-path: ./grader
- name: Cache node modules
id: cache-node-modules
uses: actions/cache@v3
with:
path: grader/node_modules
key: node-modules-${{ hashFiles('package-lock.json') }}
- name: Install Dependencies
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: npm install
- name: Validate block
run: npm run verify-block
- name: Run script file
run: |
chmod +x ./test.sh
./test.sh
shell: bash
4 changes: 4 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
cd ./grader || exit
npm install

npm run verify-block

0 comments on commit 5bedf09

Please sign in to comment.