This repository has been archived by the owner on Oct 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #83 from Lullabot/82-interactive-cli
Interactive cli
- Loading branch information
Showing
24 changed files
with
899 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,7 @@ | ||
# PHP CircleCI 2.0 configuration file | ||
# | ||
# Check https://circleci.com/docs/2.0/language-php/ for more details | ||
# | ||
version: 2 | ||
jobs: | ||
build: | ||
docker: | ||
- image: juampynr/drupal8ci:latest | ||
|
||
working_directory: /opt/drupal | ||
|
||
- image: alpine:latest | ||
steps: | ||
- checkout | ||
|
||
- run: | ||
name: Build Drupal skeleton with Composer Drupal Project | ||
command: | | ||
composer create-project drupal-composer/drupal-project:9.x-dev drupal --stability dev --no-interaction | ||
- run: | ||
name: Run setup script | ||
command: | | ||
cp setup-circleci.sh drupal | ||
cd drupal | ||
./setup-circleci.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Create release | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- 82-interactive-cli | ||
jobs: | ||
create-release: | ||
name: Build and create a release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: '^1.18' | ||
- name: Build application | ||
run: | | ||
go build | ||
- name: Set short sha | ||
id: vars | ||
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" | ||
- uses: marvinpinto/action-automatic-releases@latest | ||
with: | ||
automatic_release_tag: ${{ steps.vars.outputs.sha_short }} | ||
repo_token: "${{ secrets.GITHUB_TOKEN }}" | ||
prerelease: false | ||
files: | | ||
drupal9ci |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Publish Docker image | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- 82-interactive-cli | ||
|
||
jobs: | ||
publish-docker-image: | ||
name: Publish Docker image | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: mr-smithers-excellent/docker-build-push@v5 | ||
with: | ||
image: drupal9ci | ||
tags: latest | ||
registry: ghcr.io | ||
githubOrg: lullabot | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Test | ||
on: | ||
push: | ||
|
||
jobs: | ||
integration: | ||
name: Integration tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: '^1.18' | ||
- name: Build application | ||
run: | | ||
go build | ||
- name: Build Drupal skeleton with Composer Drupal Project | ||
run: | | ||
composer create-project drupal-composer/drupal-project:9.x-dev drupal --stability dev --no-interaction | ||
- name: Copy application binary and run it | ||
run: | | ||
cp drupal9ci drupal | ||
cd drupal | ||
# We can't test interactive mode here so we pass a CI provider. | ||
./drupal9ci Bitbucket | ||
unit: | ||
name: Unit tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: '^1.18' | ||
- name: Run tests with coverage | ||
run: go test -race -coverprofile=coverage.out -covermode=atomic ./... | ||
- uses: codecov/codecov-action@v3 | ||
with: | ||
files: ./coverage.out | ||
fail_ci_if_error: true | ||
verbose: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
.idea | ||
drupal9ci | ||
coverage.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.