-
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.
[#82] Move build and test job to GitHub Actions
- Loading branch information
Showing
2 changed files
with
27 additions
and
32 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Build and test | ||
on: | ||
push: | ||
|
||
jobs: | ||
build-and-test: | ||
name: Build and test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Build application | ||
run: | | ||
wget https://go.dev/dl/go1.18.3.linux-amd64.tar.gz | ||
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.18.3.linux-amd64.tar.gz | ||
export PATH=$PATH:/usr/local/go/bin | ||
go version | ||
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 |