Skip to content

Commit bdd13ad

Browse files
committed
use docker in build
- AUT-847
1 parent 3ebd61b commit bdd13ad

2 files changed

Lines changed: 8 additions & 26 deletions

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -8,36 +8,15 @@ env:
88

99
jobs:
1010
test:
11-
name: Tests 🚦
11+
name: Tests & Deploy 🚦🚢
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Check out repository
1515
uses: actions/checkout@v3
16-
- name: Use correct PHP version
17-
run: phpenv local 8.0
18-
- name: Install dependencies
19-
run: composer install --no-interaction
16+
- name: Setup and start container
17+
run: make all
2018
- name: Run tests
21-
run: composer test
22-
- name: Slack notification
23-
uses: 8398a7/action-slack@a189acbf0b7ea434558662ae25a0de71df69a435
24-
if: ${{ failure() }}
25-
with:
26-
status: ${{ job.status }}
27-
fields: repo,message,author,job,ref
28-
job_name: Test 🚦
29-
env:
30-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
31-
32-
deploy:
33-
name: Deploy 🚢
34-
needs: [test]
35-
runs-on: ubuntu-latest
36-
steps:
37-
- name: Check out repository
38-
uses: actions/checkout@v3
39-
- name: Use correct PHP version
40-
run: phpenv local 8.0
19+
run: make test
4120
- name: Release package
4221
if: github.ref_name == 'master'
4322
run: composer publish emartech ${PACKAGIST_TOKEN}
@@ -46,7 +25,7 @@ jobs:
4625
with:
4726
status: ${{ job.status }}
4827
fields: repo,message,author,job,ref
49-
job_name: Deploy 🚢
28+
job_name: Tests & Deploy 🚦🚢
5029
env:
5130
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
5231
if: always()

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,6 @@ packages: ## install packages
4444

4545
update-packages: ## install packages
4646
$(DOCKER_COMPOSE) run --rm web composer update
47+
48+
publish: #publish packages
49+
$(DOCKER_COMPOSE) run --rm web composer publish emartech $(PACKAGIST_TOKEN)

0 commit comments

Comments
 (0)