Skip to content

Commit

Permalink
CI INIT TEST
Browse files Browse the repository at this point in the history
  • Loading branch information
LuckyShuii committed Aug 21, 2024
1 parent 3d6068c commit 430be64
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: jest-and-docker-ci

on: push

jobs:
test-front:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Goto client and run tests
run: cd frontend && npm i && npm test
docker:
needs: test-front
if: github.ref == 'refs/heads/dev'
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
push: true
context: "{{defaultContext}}:client"
tags: ${{ secrets.DOCKERHUB_USERNAME }}/quete1902:latest

0 comments on commit 430be64

Please sign in to comment.