-
-
Notifications
You must be signed in to change notification settings - Fork 52
51 lines (41 loc) · 1.17 KB
/
tests.yml
File metadata and controls
51 lines (41 loc) · 1.17 KB
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
name: Tests
on:
push:
branches:
- main
pull_request:
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.4
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite
coverage: none
- name: Install Composer dependencies
run: composer install --prefer-dist --no-interaction --no-suggest
- name: Install NPM dependencies
run: npm ci
- name: Compile assets
run: npm run build
- name: Execute tests
run: vendor/bin/phpunit
dependabot:
needs: [tests]
permissions:
pull-requests: write
contents: write
uses: driesvints/github-workflows/.github/workflows/dependabot.yml@main
secrets:
gh_token: ${{ secrets.GITHUB_TOKEN }}
deploy:
needs: [tests]
runs-on: ubuntu-latest
steps:
- name: Deploy
if: github.repository == 'laravelio/paste.laravel.io' && github.ref_name == 'main'
run: curl -d POST ${{ secrets.DEPLOY_HOOK }}?commit_hash=${{ github.sha }}