diff --git a/.github/workflows/lint-and-analyse.yml b/.github/workflows/lint-and-analyse.yml index 6ef1b3d..8d7674b 100644 --- a/.github/workflows/lint-and-analyse.yml +++ b/.github/workflows/lint-and-analyse.yml @@ -1,14 +1,17 @@ name: Lint and analyse files +permissions: + contents: read + on: [push] jobs: lint-php: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Cache module - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.composer/cache/ key: composer-cache @@ -24,9 +27,9 @@ jobs: analyse-php: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Cache module - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.composer/cache/ key: composer-cache diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 59dcae7..5d1c9ef 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,5 +1,8 @@ name: Run tests +permissions: + contents: read + on: [push] jobs: @@ -9,21 +12,21 @@ jobs: continue-on-error: ${{ matrix.experimental }} strategy: matrix: - php-version: ["8.1", "8.2"] + php-version: ["8.1", "8.2", "8.3"] os: [ubuntu-latest] experimental: [false] composer-options: [''] include: - { php-version: 'nightly', composer-options: '--ignore-platform-req=php', experimental: true, os: ubuntu-latest } steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use php ${{ matrix.php-version }} uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php-version }} coverage: pcov - name: Cache module - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.composer/cache/ key: composer-cache @@ -32,4 +35,6 @@ jobs: - name: Run php tests run: composer run phpunit - name: Send coverage - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }}