Skip to content

Commit

Permalink
setup s3 sync (#84)
Browse files Browse the repository at this point in the history
* setup s3 sync

* update aws credential

* fix path
  • Loading branch information
pindge committed Mar 6, 2023
1 parent 4927555 commit 190d616
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,23 @@ jobs:
with:
fetch-depth: 0

- name: Configure AWS credentials from Test account
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: arn:aws:iam::538673716275:role/github-actions-dea-coastlines-s3-role
aws-region: ap-southeast-2

- name: Copy files to the test website with the AWS CLI
run: |
aws s3 sync s3:https://dea-non-public-data/tide_models/tide_models tide_models
- name: Run dockerized integration tests and copy outputs
run: |
# Set up artifacts directory to house outputs from integration tests,
# giving all users read and write permissions
mkdir artifacts
chmod a+rw artifacts
# Download tide modelling files and unzip
wget --no-verbose https://www.dropbox.com/s/vj2rqkwy9al144w/tide_models.zip?dl=1 -O tide_models.zip
unzip -q tide_models.zip
# Run integration tests using Docker
docker-compose up -d
docker-compose exec -T coastline /bin/sh -c "sh ./docker/coastline/run_tests"
Expand Down

0 comments on commit 190d616

Please sign in to comment.