diff --git a/.gitea/workflows/basic.yaml b/.gitea/workflows/basic.yaml index cf0fdf1..55276d3 100644 --- a/.gitea/workflows/basic.yaml +++ b/.gitea/workflows/basic.yaml @@ -12,8 +12,12 @@ jobs: - name: Check out repository code uses: actions/checkout@v3 - run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner." - - run: echo "🖥️ The workflow is now ready to test your code on the runner." - - name: List files in the repository - run: | - ls ${{ gitea.workspace }} + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: 18.x + - name: Install packages + run: npm install + - name: Run tests + run: npm test - run: echo "🍏 This job's status is ${{ job.status }}." diff --git a/express/animals.json b/animals.json similarity index 100% rename from express/animals.json rename to animals.json diff --git a/express/app.js b/app.js similarity index 100% rename from express/app.js rename to app.js diff --git a/express/app.test.js b/app.test.js similarity index 100% rename from express/app.test.js rename to app.test.js diff --git a/express/asset/frontend.js b/asset/frontend.js similarity index 100% rename from express/asset/frontend.js rename to asset/frontend.js diff --git a/express/config.js b/config.js similarity index 100% rename from express/config.js rename to config.js diff --git a/express/db/.gitkeep b/db/.gitkeep similarity index 100% rename from express/db/.gitkeep rename to db/.gitkeep diff --git a/express/index.html b/index.html similarity index 100% rename from express/index.html rename to index.html diff --git a/express/log/.gitkeep b/log/.gitkeep similarity index 100% rename from express/log/.gitkeep rename to log/.gitkeep diff --git a/express/package-lock.json b/package-lock.json similarity index 100% rename from express/package-lock.json rename to package-lock.json diff --git a/express/package.json b/package.json similarity index 88% rename from express/package.json rename to package.json index 233d058..1f481ac 100644 --- a/express/package.json +++ b/package.json @@ -5,7 +5,8 @@ "main": "server.js", "scripts": { "test": "jest", - "start": "node server.js" + "start": "node server.js", + "act": "act -W ./.gitea/workflows/" }, "repository": { "type": "git", diff --git a/express/server.js b/server.js similarity index 100% rename from express/server.js rename to server.js