Skip to content

Commit

Permalink
Run tests only on push/pull_request
Browse files Browse the repository at this point in the history
  • Loading branch information
calind committed Jan 6, 2022
1 parent 7613105 commit e4b196b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ steps:
image: docker.io/bitpoke/build:v0.7.4
commands:
- make lint
when:
event: [push, pull_request]

- name: test
image: docker.io/bitpoke/build:v0.7.4
Expand All @@ -32,6 +34,8 @@ steps:
MEMCACHED_TEST_HOST: memcache:11211
commands:
- make test-runtime
when:
event: [push, pull_request]

- name: integration test
image: docker.io/bitpoke/build:v0.7.4
Expand All @@ -44,6 +48,8 @@ steps:
MEMCACHED_TEST_HOST: memcache:11211
commands:
- make test-wp
when:
event: [push, pull_request]

- name: bundle
pull: always
Expand All @@ -55,7 +61,7 @@ steps:
event: tag

- name: publish
image: plugins/github-release
image: plugins/github-release@sha256:78bf13eda852e815310a5c4faf3ad04fd0c1c07bf661b4f979ab296f044f9cbd
settings:
api_key:
from_secret: GH_TOKEN
Expand All @@ -76,6 +82,10 @@ services:
MYSQL_PASSWORD: not-so-secure-but-good-for-ci
MYSQL_ROOT_PASSWORD: insecure-root-password-but-good-for-ci
MYSQL_USER: wordpress
when:
event: [push, pull_request]

- name: memcache
image: memcached:1.5.10-alpine
when:
event: [push, pull_request]

0 comments on commit e4b196b

Please sign in to comment.