Skip to content

Commit 015d02c

Browse files
committed
Update github actions workflows
1 parent ee065a5 commit 015d02c

File tree

5 files changed

+30
-17
lines changed

5 files changed

+30
-17
lines changed

.env.example

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ APP_DEBUG=true
55
APP_URL=http://laravel.cm.test
66
FRONTEND_APP_URL=http://localhost::4200
77

8-
FILAMENT_PATH=cpanel
9-
108
LOG_CHANNEL=stack
119
LOG_LEVEL=debug
1210

@@ -75,9 +73,12 @@ MARKDOWNX_GIPHY_API_KEY=
7573
TORCHLIGHT_TOKEN=
7674
MIX_TORCHLIGHT_TOKEN="${TORCHLIGHT_TOKEN}"
7775
UNSPLASH_ACCESS_KEY=
76+
7877
TELEGRAM_BOT_TOKEN=
7978
TELEGRAM_CHANNEL=
79+
8080
MEDIA_DISK=media
8181
FORMS_FILESYSTEM_DRIVER=${MEDIA_DISK}
82+
8283
SENTRY_LARAVEL_DSN=
8384
SENTRY_TRACES_SAMPLE_RATE=
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Coding Standards
2+
3+
on: [push]
4+
5+
permissions:
6+
contents: write
7+
8+
jobs:
9+
lint:
10+
uses: laravel/.github/.github/workflows/coding-standards.yml@main

.github/workflows/npm-build.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,4 @@ jobs:
3131
uses: stefanzweifel/git-auto-commit-action@v4
3232
with:
3333
branch: main
34-
commit_message: >
35-
chore: build assets
34+
commit_message: Compile Assets

.github/workflows/tests.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,5 @@ jobs:
2121
- name: Install Composer dependencies
2222
run: composer install --prefer-dist --no-interaction
2323

24-
- name: Run Laravel Pint
25-
run: composer pint
26-
2724
- name: Execute tests
2825
run: composer pest

README.md

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,18 @@
66
<a href="https://github.com/laravelcm/laravel.cm/actions">
77
<img src="https://github.com/laravelcm/laravel.cm/workflows/Tests/badge.svg" alt="Build Status" />
88
</a>
9+
<a href="https://github.com/laravelcm/laravel.cm/actions/workflows/coding-standards.yml">
10+
<img src="https://github.com/laravelcm/laravel.cm/actions/workflows/coding-standards.yml/badge.svg" alt="Coding Standards" />
11+
</a>
12+
<a href="https://laravel.com">
13+
<img alt="Laravel v9.x" src="https://img.shields.io/badge/Laravel-v9.x-FF2D20">
14+
</a>
915
<a href="https://forge.laravel.com">
1016
<img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fforge.laravel.com%2Fsite-badges%2Fb0b9e269-e85c-40eb-9b8d-cfa8197a1bb2&style=plastic" alt="Laravel Forge Site Deployment Status" />
1117
</a>
1218
</p>
1319

1420
## Laravel.cm
15-
1621
Ce dépôt contient le code source du site de [Laravel.cm](https://laravel.cm). Laravel Cameroun est la plus grande communauté de
1722
développeurs PHP & Laravel résidant au Cameroun.
1823

@@ -22,13 +27,11 @@ Twitter: https://twitter.com/laravelcm <br />
2227
Groupe Slack: https://laravelcm.slack.com <br />
2328

2429
## Sponsors
25-
2630
Nous tenons à remercier ces **entreprises extraordinaires** pour leur parrainage. Si vous souhaitez devenir sponsor, veuillez visiter <a href="https://github.com/sponsors/mckenziearts">la page Laravel.cm Github de Sponsoring</a>.
2731

2832
- **[Laravel Shopper](https://laravelshopper.io)**
2933

3034
## Caractéristiques Serveur
31-
3235
The following tools are required in order to start the installation.
3336

3437
- PHP >=8.0
@@ -37,7 +40,6 @@ The following tools are required in order to start the installation.
3740
- [Valet](https://laravel.com/docs/valet#installation)
3841

3942
## Installation
40-
4143
> Notez que vous êtes libre d'ajuster l'emplacement `~/Sites/laravel.cm` à n'importe quel répertoire de votre choix sur votre machine. Ce faisant, assurez-vous d'exécuter la commande `valet link` dans le répertoire souhaité.
4244
4345
1. Clonez ce repo avec la commande `git clone git@github.com:laravelcm/laravel.cm.git ~/Sites/laravel.cm`
@@ -55,7 +57,6 @@ php artisan db:seed --class=DummyDatabaseSeeder
5557
```
5658

5759
### Media Library Pro (optionnel)
58-
5960
Pour que l'upload de fichier fonctionne en local (pour les elements qui utilise Media Library Pro comme la modification de la photo de profil) vous devez renseignez la Licence avec votre compte de Spatie. Pour ce projet une licence commune est disponible etant une `single Licence` pour ce projet uniquement. Vous devez copier coller ce code dans le fichier `auth.json` qui a ete cree a la racine et relancer la commande `composer install`
6061

6162
```json
@@ -70,7 +71,6 @@ Pour que l'upload de fichier fonctionne en local (pour les elements qui utilise
7071
```
7172

7273
### Github Authentication (optionnel)
73-
7474
Pour que l'authentification Github fonctionne localement, vous devez [enregistrer une nouvelle application OAuth sur Github](https://github.com/settings/applications/new). Utilisez `http://laravel.cm.test` pour l'URL de la page d'accueil et `http://laravel.cm.test/auth/github` pour l'URL de rappel. Lorsque vous avez créé l'application, remplissez l'ID et le secret dans votre fichier `.env` dans les variables d'environnement ci-dessous. Vous devriez maintenant pouvoir vous authentifier avec Github.
7575

7676
```shell
@@ -80,7 +80,6 @@ GITHUB_URL=http://laravel.cm.test/auth/github
8080
```
8181

8282
### Twitter Sharing (optionnel)
83-
8483
Pour permettre le partage automatique des articles publiés sur Twitter, vous devez [créer une application Twitter](https://developer.twitter.com/apps/). Une fois l'application créée, mettez à jour les variables ci-dessous dans votre fichier `.env`. La clé et le secret du consommateur ainsi que le jeton et le secret d'accès se trouvent dans la section «Clés et jetons» de l'interface utilisateur des développeurs Twitter.
8584

8685
```shell
@@ -92,13 +91,20 @@ TWITTER_ACCESS_SECRET=
9291

9392
Les articles approuvés sont partagés dans l'ordre dans lequel ils ont été soumis pour approbation. Les articles sont partagés deux fois par jour à 14h00 et 18h00 UTC. Une fois qu'un article a été partagé, il ne sera plus partagé.
9493

95-
## Commands
94+
### Notifications Telegram (optionnel)
95+
Laravel Cameroun peut notifier les administrateurs des nouveaux articles soumis via Telegram. Pour que cela fonctionne, vous devez configurer un [bot Telegram](https://core.telegram.org/bots) et obtenir un token. Ensuite, configurez le canal sur lequel vous souhaitez envoyer les messages relatifs aux nouveaux articles.
9696

97+
```shell
98+
TELEGRAM_BOT_TOKEN=
99+
TELEGRAM_CHANNEL=
100+
```
101+
102+
## Commands
97103
Command | Description
98104
--- | ---
99-
**`php artisan test --parallel`** | Exécuter les tests
105+
**`composer pest`** | Exécuter les tests
100106
`php artisan migrate:fresh --seed` | Reset la base de données
101-
`npx mix --watch` | Surveillez les changements dans les fichiers CSS et JS
107+
`yarn run watch` | Surveillez les changements dans les fichiers CSS et JS
102108

103109
## Maintainers
104110

0 commit comments

Comments
 (0)