Skip to content

Commit

Permalink
Create bacularis-web.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ganiuszka committed Jul 21, 2023
1 parent 4410c6b commit cdc553c
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/bacularis-web.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Bacularis Web

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

permissions:
contents: read

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Validate composer.json and composer.lock
run: composer validate

- name: Get Composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache Composer packages
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Tweak composer config (until releasing Bacularis 2.1.1)
run: composer config minimum-stability dev

- name: Install dependencies
run: composer install --prefer-dist --no-progress

- name: Run static code analyse
run: composer analyse

0 comments on commit cdc553c

Please sign in to comment.