diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 3c1e2ff..95194e0 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -1,109 +1,38 @@ -name: Build and Test +name: Build and Deploy on: push: branches: - main - pull_request: - branches: - - main jobs: - build-and-test: + build-and-deploy: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Node.js uses: actions/setup-node@v3 with: node-version: '20' - - name: Create package.json if not exists - run: | - if [ ! -f package.json ]; then - echo '{ - "name": "madj101", - "version": "1.0.0", - "description": "Mobile App Development for Juniors", - "main": "index.js", - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" - }, - "author": "Raydo Matthee", - "license": "ISC", - "dependencies": {} - }' > package.json - fi - - name: Install dependencies - run: npm install - - - name: Verify HTML, CSS, and JavaScript run: | - npx html-validate web-portal/index.html - npx stylelint "web-portal/css/**/*.css" - npx eslint web-portal/js/**/*.js - - - name: Create quiz page - run: | - echo ' - -
- - -