Skip to content

Commit 15d0c85

Browse files
authored
Merge pull request #20 from ChouquetteCorp/develop
Release 1.2.0
2 parents 04bf6bd + 4f990a1 commit 15d0c85

File tree

10 files changed

+650
-34
lines changed

10 files changed

+650
-34
lines changed

.github/configApiSport/default.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -11,41 +11,41 @@
1111
"rugby": [
1212
{
1313
"league": 52,
14-
"season": 2022
14+
"season": 2024
1515
},
1616
{
1717
"league": 54,
18-
"season": 2022
18+
"season": 2024
1919
},
2020
{
2121
"league": 16,
22-
"season": 2022
22+
"season": 2024
2323
},
2424
{
2525
"league": 69,
26-
"season": 2023
26+
"season": 2024
2727
}
2828
],
2929
"handball": [
3030
{
3131
"league": 132,
32-
"season": 2023
32+
"season": 2024
3333
},
3434
{
3535
"league": 32,
36-
"season": 2023
36+
"season": 2024
3737
},
3838
{
3939
"league": 35,
40-
"season": 2023
40+
"season": 2024
4141
},
4242
{
4343
"league": 29,
44-
"season": 2023
44+
"season": 2024
4545
},
4646
{
4747
"league": 34,
48-
"season": 2023
48+
"season": 2024
4949
}
5050
]
5151
}

.github/configApiSport/football.json

+27-7
Original file line numberDiff line numberDiff line change
@@ -13,31 +13,51 @@
1313
"football": [
1414
{
1515
"league": 66,
16-
"season": 2023
16+
"season": 2024
1717
},
1818
{
1919
"league": 64,
20-
"season": 2023
20+
"season": 2024
2121
},
2222
{
2323
"league": 61,
24-
"season": 2023
24+
"season": 2024
2525
},
2626
{
2727
"league": 2,
28-
"season": 2023
28+
"season": 2024
2929
},
3030
{
3131
"league": 525,
32-
"season": 2023
32+
"season": 2024
3333
},
3434
{
3535
"league": 3,
36-
"season": 2023
36+
"season": 2024
3737
},
3838
{
3939
"league": 8,
40-
"season": 2023
40+
"season": 2024
41+
},
42+
{
43+
"league": 4,
44+
"season": 2024
45+
},
46+
{
47+
"league": 10,
48+
"season": 2024
49+
},
50+
{
51+
"league": 6110,
52+
"season": 2024
53+
},
54+
{
55+
"league": 6111,
56+
"season": 2024
57+
},
58+
{
59+
"league": 5932,
60+
"season": 2024
4161
}
4262
]
4363
}

.github/workflows/cd_production.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
PROJECT_ID: ${{ secrets.PRODUCTION_PROJECT_ID }}
2020

2121
steps:
22-
- uses: actions/checkout@v3
23-
- uses: actions/cache@v3
22+
- uses: actions/checkout@v4
23+
- uses: actions/cache@v4
2424
id: cache
2525
with:
2626
path: ~/.npm

.github/workflows/cd_staging.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
STAGING_PROJECT_ID: ${{ secrets.STAGING_PROJECT_ID }}
2020

2121
steps:
22-
- uses: actions/checkout@v3
23-
- uses: actions/cache@v3
22+
- uses: actions/checkout@v4
23+
- uses: actions/cache@v4
2424
id: cache
2525
with:
2626
path: ~/.npm

.github/workflows/ci.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ jobs:
99
integration:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v3
13-
- uses: actions/cache@v3
12+
- uses: actions/checkout@v4
13+
- uses: actions/cache@v4
1414
id: cache
1515
with:
1616
path: ~/.npm
@@ -29,16 +29,16 @@ jobs:
2929
runs-on: ubuntu-22.04
3030
steps:
3131
- name: Checkout
32-
uses: actions/checkout@v3
32+
uses: actions/checkout@v4
3333
- name: Install dependencies
34-
uses: cypress-io/github-action@v5
34+
uses: cypress-io/github-action@v6
3535
with:
3636
# just perform install
3737
runTests: false
3838
- name: Start server in the background
3939
run: npm run supabase:start -- -x studio,imgproxy,inbucket,pgadmin-schema-diff,migra,postgres-meta,vector,pgbouncer,logflare
4040
- name: Cypress run
41-
uses: cypress-io/github-action@v5
41+
uses: cypress-io/github-action@v6
4242
with:
4343
install: false
4444
start: npm run dev:emulator

.github/workflows/getmatchs.yml

+8-6
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
1414
- name: Get Matches
1515
run: |
1616
npx --yes api-sport-cli get-matchs -c .github/configApiSport/football.json -s matchs.football.sql -j matchs.football.json -u api_id
1717
npx --yes api-sport-cli get-matchs -c .github/configApiSport/default.json -s matchs.sql -j matchs.json -u api_id
1818
env:
1919
SPORT_API_KEY: ${{ secrets.SPORT_API_KEY }}
20-
- uses: actions/upload-artifact@v3
20+
- uses: actions/upload-artifact@v4
2121
with:
2222
name: matchs
2323
path: |
@@ -33,16 +33,18 @@ jobs:
3333
sudo apt-get install -y postgresql-15
3434
- name: Add matchs.sql to database Staging
3535
run: |
36-
psql -h "db.$STAGING_PROJECT_ID.supabase.co" -p 5432 -d postgres -U postgres -f matchs.football.sql
37-
psql -h "db.$STAGING_PROJECT_ID.supabase.co" -p 5432 -d postgres -U postgres -f matchs.sql
36+
psql -h "$HOST" -p 5432 -d postgres -U "postgres.$STAGING_PROJECT_ID" -f matchs.football.sql
37+
psql -h "$HOST" -p 5432 -d postgres -U "postgres.$STAGING_PROJECT_ID" -f matchs.sql
3838
env:
3939
PGPASSWORD: ${{ secrets.STAGING_DB_PASSWORD }}
40+
HOST: ${{ secrets.STAGING_HOST }}
4041
STAGING_PROJECT_ID: ${{ secrets.STAGING_PROJECT_ID }}
4142

4243
- name: Add matchs.sql to database Prod
4344
run: |
44-
psql -h "db.$PRODUCTION_PROJECT_ID.supabase.co" -p 5432 -d postgres -U postgres -f matchs.football.sql
45-
psql -h "db.$PRODUCTION_PROJECT_ID.supabase.co" -p 5432 -d postgres -U postgres -f matchs.sql
45+
psql -h "$HOST" -p 5432 -d postgres -U "postgres.$PRODUCTION_PROJECT_ID" -f matchs.football.sql
46+
psql -h "$HOST" -p 5432 -d postgres -U "postgres.$PRODUCTION_PROJECT_ID" -f matchs.sql
4647
env:
4748
PGPASSWORD: ${{ secrets.PRODUCTION_DB_PASSWORD }}
49+
HOST: ${{ secrets.PRODUCTION_HOST }}
4850
PRODUCTION_PROJECT_ID: ${{ secrets.PRODUCTION_PROJECT_ID }}

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "beerbet",
3-
"version": "1.1.0",
3+
"version": "1.2.0",
44
"scripts": {
55
"dev": "vite --port 3000",
66
"dev:emulator": "vite --port 3000 --mode=emulator",

0 commit comments

Comments
 (0)