diff --git a/.github/workflows/container.yml b/.github/workflows/container.yml index 125d27f..9d7c466 100644 --- a/.github/workflows/container.yml +++ b/.github/workflows/container.yml @@ -4,9 +4,18 @@ on: push jobs: node-docker: runs-on: ubuntu-latest - container: node:13.5.0-alpine3.10 + # container: node:13.5.0-alpine3.10 + services: + app: + image: alialaa17/node-api + ports: + - 3001:300 + mongo: + image: mongo + ports: + - "27017:27017" steps: - - name: Log node version - run: | - node -v - cat /etc/os-release \ No newline at end of file + - name: Post a user + run: "curl -X POST http://localhost:3001/api/users -H 'Content-Type: application/json' -d '{\"username\": \"hello\", \"address\": \"asdsad\"}'" + - name: Get Users + run: curl http://localhost:3001/api/users diff --git a/.github/workflows/env.yml b/.github/workflows/env.yml index 8a647d4..b18ec82 100644 --- a/.github/workflows/env.yml +++ b/.github/workflows/env.yml @@ -19,22 +19,22 @@ jobs: steps: - name: Push a random file run: | - pwd - ls -a - git init - git remote add origin "https://$GITHUB_ACTOR:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY.git" - git config --global user.email "my-bot@bot.com" - git config --global user.name "my-bot" - git fetch - git checkout master - git branch --set-upstream-to=origin/master - git pull - ls -a - echo $RANDOM >> random.txt - ls -a - git add -A - git commit -m "set random file" - git push + # pwd + # ls -a + # git init + # git remote add origin "https://$GITHUB_ACTOR:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY.git" + # git config --global user.email "my-bot@bot.com" + # git config --global user.name "my-bot" + # git fetch + # git checkout master + # git branch --set-upstream-to=origin/master + # git pull + # ls -a + # echo $RANDOM >> random.txt + # ls -a + # git add -A + # git commit -m "set random file" + # git push - name: Create an issue using REST API run: | curl --request POST \