Skip to content

Commit

Permalink
add other rav-hen cinemas, test github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
vorant94 committed Jun 9, 2024
1 parent 13d775f commit a2aa6c9
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 1 deletion.
43 changes: 43 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI/CD

on:
push:
branches: ['master']
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: 'pages'
cancel-in-progress: false

jobs:
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'

- run: npm ci --ignore-scripts --no-audit

- run: npm run build --workspace @sofash/cli

- run: npm run start cinema rav-hen --workspace @sofash/cli -- --cinemaId 1058 --date 2024-06-09

- uses: actions/upload-pages-artifact@v3
with:
path: './packages/cli/data'

deploy:
runs-on: ubuntu-latest
needs:
- generate
steps:
- uses: actions/deploy-pages@v4
2 changes: 2 additions & 0 deletions packages/cli/src/cinema/rav-hen/api/rav-hen.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import type { RavHenCinemaId } from './rav-hen.models.js';

const cinemaIdToName = {
1058: 'givataiim',
1071: 'dizengoff',
1062: 'kiryat ono',
} as const satisfies Record<RavHenCinemaId, string>;

export const ravHenConfig = {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/cinema/rav-hen/api/rav-hen.models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ export const ravHenEventSchema = z.object({

export type RavHenEvent = z.infer<typeof ravHenEventSchema>;

export const ravHenCinemaIds = ['1058'] as const;
export const ravHenCinemaIds = ['1058', '1071', '1062'] as const;
export type RavHenCinemaId = (typeof ravHenCinemaIds)[number];
export const ravHenCinemaIdSchema = z.enum(ravHenCinemaIds);

0 comments on commit a2aa6c9

Please sign in to comment.