-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 loc) · 1.57 KB
/
build-code.yml
File metadata and controls
42 lines (39 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Package Build
on:
pull_request:
branches: [ master ]
push:
branches: [ master ]
jobs:
gen-template:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm i -g simplify-graphql
- run: simplify-graphql template -i schema
- run: simplify-graphql -i schema.graphql --env demo -p ${{ secrets.PROJECT_ID }} -a ${{ secrets.AWS_ACCOUNT_ID }} -o $PWD/ci-test
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-region: eu-west-1
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
role-external-id: ${{ secrets.AWS_ROLE_EXTERNAL_ID }}
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
role-session-name: GitHubCISession
role-duration-seconds: 1200
- run: cat .projectInfo.json
- run: cd $PWD/ci-test && npm install
#- run: cd $PWD/ci-test && npm run stack-deploy
#- run: cd $PWD/ci-test && npm run push-code
#- run: cd $PWD/ci-test && npm run push-config
#- run: cd $PWD/ci-test && npm run stack-destroy