-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (69 loc) · 1.93 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
contents: read
concurrency:
group: ci-${{ github.ref_name }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 60
container:
image: docker://ghcr.io/momentumstudioltd/laravel:7.4
credentials:
username: Jamesking56
password: ${{ secrets.WRITE_GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3.0.2
- uses: actions/checkout@v3.0.2
with:
fetch-depth: 0
repository: momentumstudioltd/github-actions
path: .github/actions
token: ${{ secrets.WRITE_GITHUB_TOKEN }}
- uses: ./.github/actions/laravel-lint
with:
envy: 'false'
test:
runs-on: ubuntu-latest
timeout-minutes: 60
container:
image: docker://ghcr.io/momentumstudioltd/laravel:7.4
credentials:
username: Jamesking56
password: ${{ secrets.WRITE_GITHUB_TOKEN }}
env:
APP_DEBUG: true
APP_KEY: base64:LRzu4MK+VG+TRlCPhDVkYeoY+b7T+xl+NhPBCUZViWE=
DB_CONNECTION: mysql
DB_HOST: db
DB_PORT: 3306
DB_USERNAME: root
DB_PASSWORD: ''
DB_DATABASE: laravel
services:
db:
image: mariadb:10.4
env:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_DATABASE: laravel
ports:
- 3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- uses: actions/checkout@v3.0.2
- uses: actions/checkout@v3.0.2
with:
fetch-depth: 0
repository: momentumstudioltd/github-actions
path: .github/actions
token: ${{ secrets.WRITE_GITHUB_TOKEN }}
- uses: ./.github/actions/laravel-test
env:
CODACY_API_TOKEN: ${{ secrets.CODACY_API_TOKEN }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}