Skip to content
This repository has been archived by the owner on Aug 19, 2023. It is now read-only.

add yml #40

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
on:
pull_request:
branches: [main]

jobs:
Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-- name: Build and push
uses: docker/build-push-action@v3
with:
push: true
tags: |
encx/agoda-ci-workshop-2022:1.0.${{ github.run_id }}-alpha
Test:
runs-on: ubuntu-latest
needs: build
services:
our_website:
image: encx/agoda-ci-workshop-2022:1.0.${{ github.run_id }}-alpha
ports:
- 3000:3000
steps:
- uses: actions/checkout@v3
- name: Use Node.js 16
uses: actions/setup-node@v3
with:
node-version: 16.x
- run: yarn
- run: npx playwright install chromium
- run: yarn test:e2e