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

Create workflows #51

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
45 changes: 45 additions & 0 deletions .github/workflows/setting.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: pull request

on:
pull_request:
branches: [main]

jobs:
builds:
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: builds
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



10 changes: 10 additions & 0 deletions db/fakedb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,16 @@ export const PropertyDb: PropertySearchResult[] = [
additional_label: 'I am world champion now',
free_cancellation: true,
},
{
name: 'Test Apartment',
image: '/trump.jpg',
score: 9,
price: 9999,
discount: 50,
nbr_of_reviews: 20,
additional_label: 'ONLY 2 LEFT',
free_cancellation: true,
},
{
name: 'Freshman and Master Hotel',
image: '/desk.jpg',
Expand Down