https://github.com/masaditya/test-autograde
Github Actions performed code autograding for React Project
https://github.com/masaditya/test-autograde
actions autograding github-actions react
Last synced: 4 days ago
JSON representation
Github Actions performed code autograding for React Project
- Host: GitHub
- URL: https://github.com/masaditya/test-autograde
- Owner: masaditya
- Created: 2020-12-01T18:42:28.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-06-24T18:02:49.000Z (almost 5 years ago)
- Last Synced: 2026-05-15T18:59:54.709Z (about 1 month ago)
- Topics: actions, autograding, github-actions, react
- Language: JavaScript
- Homepage: https://github.com/marketplace/actions/test-autograde
- Size: 1.29 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## React Project Autograder
### How to use
- create `yaml` file in `/.github/workflows/`.
- insert this into `yaml` or `yml` file.
```
name: Test Autograde
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
autograde:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v2
# Runs a single command using the runners shell
- name: install dependencies
run: npm install
- name : Autograde Testing
run: npm run test -- --verbose 2>&1 | tee test.log
- name : Show log file
run: cat test.log
- uses: masaditya/test-autograde@v10.0
```
- create commit and push to gitHub
- result can be found in [Autograde Dashboard](https://autograde-dashboard.vercel.app/)