Skip to content

Commit

Permalink
Merge pull request #44 from kasparsd/update-deps
Browse files Browse the repository at this point in the history
chore: Update dependencies and tooling
  • Loading branch information
kasparsd authored Jul 11, 2024
2 parents dfa3850 + c42bc0a commit 0596a66
Show file tree
Hide file tree
Showing 14 changed files with 3,815 additions and 4,242 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Lint and Test

on: push

jobs:

test:
name: Test and Lint
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: 'npm'

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
tools: composer:v2

- name: Install JS tooling
run: npm install

- name: Install PHP tooling
run: composer install

- name: Lint
run: npm run lint

- name: Build
run: npm run build
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20
20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

5 changes: 5 additions & 0 deletions .wp-env.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"plugins": [
"."
]
}
6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 0.8.1 (July 11, 2024)

- Fix: require `jquery` for the front-end control script since the Contact Form 7 plugin no longer enqueues it. Eventually to be replaced with pure Javascript.
- Confirm that plugin works with WordPress 6.5.
- Tooling: update development tooling.

## 0.8.0 (July 23, 2020)

- Fix: Use the suggested Google Global Site Tag (gtag.js) [event structure](https://developers.google.com/analytics/devguides/collection/gtagjs/events). This will make the "Contact Form" events appear in both Google Analytics and Google Tag Manager.
Expand Down
12 changes: 1 addition & 11 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,8 @@
},
"scripts": {
"lint": [
"phpcs .",
"npm run lint",
"phpcs",
"composer validate"
],
"build": [
"npm run build"
],
"post-install-cmd": [
"npm install"
],
"post-update-cmd": [
"npm install"
]
}
}
78 changes: 57 additions & 21 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0596a66

Please sign in to comment.