|
7 | 7 | branches: [master, dev] |
8 | 8 |
|
9 | 9 | jobs: |
10 | | - setup-server: |
| 10 | + setup-backend-server: |
11 | 11 | name: Setup Backend Server |
12 | 12 | runs-on: ubuntu-latest |
13 | 13 | services: |
|
51 | 51 | run: MIX_ENV=ci mix run priv/mock/cps_seeds.exs > /dev/null |
52 | 52 | - name: ls dir |
53 | 53 | run: ls |
| 54 | + - name: Run Backend Server |
| 55 | + working-directory: ./backend_server |
| 56 | + run: MIX_ENV=ci mix phx.server & |
| 57 | + |
| 58 | + setup-front: |
| 59 | + name: Setup Web Front |
| 60 | + runs-on: ubuntu-latest |
| 61 | + needs: setup-server |
| 62 | + steps: |
54 | 63 | - uses: actions/checkout@v2 |
55 | 64 | with: |
56 | 65 | fetch-depth: 0 |
|
78 | 87 | - name: ls .. |
79 | 88 | working-directory: ./frontend_server |
80 | 89 | run: ls ..; ls ../backend_server |
81 | | - - name: Run Backend Server |
82 | | - working-directory: ./backend_server |
83 | | - run: MIX_ENV=ci mix phx.server & |
84 | 90 | - name: Run Tests |
85 | 91 | working-directory: ./frontend_server |
86 | 92 | run: npm run test:ci |
87 | | - # setup-front: |
88 | | - # name: Setup Web Front |
89 | | - # runs-on: ubuntu-latest |
90 | | - # needs: setup-server |
91 | | - # steps: |
92 | | - # - uses: actions/checkout@v2 |
93 | | - # - uses: actions/setup-node@v2 |
94 | | - # with: |
95 | | - # node-version: '12' |
96 | | - # - name: checkout |
97 | | - # uses: actions/checkout@v2 |
98 | | - # with: |
99 | | - # fetch-depth: 0 |
100 | | - # # - name: Install Packages |
101 | | - # # run: yarn |
102 | | - # - name: Setup config tools |
103 | | - # run: chmod +x ./utils/bin/jq-linux; ./utils/bin/jq-linux -s '.[0] * .[1]' config/config.json config/config.ci.json > /tmp/config.json; cp /tmp/config.json ./config/config.json |
104 | | - # # - name: Build Project |
105 | | - # # run: npm run build.ci |
106 | | - # # - name: Check Bundle Size |
107 | | - # # run: BUNDLEWATCH_GITHUB_TOKEN=${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }} npm run size.check |
108 | | - # - name: Set up Elixir and OTP |
109 | | - # uses: actions/setup-elixir@v1 |
110 | | - # with: |
111 | | - # elixir-version: '1.10.3' # Define the elixir version [required] |
112 | | - # otp-version: '22.3' # Define the OTP version [required] |
113 | | - # - name: debug dir |
114 | | - # run: ls |
115 | | - # - name: debug server dir |
116 | | - # run: ls ./backend_server |
117 | | - # - name: Run Backend Server |
118 | | - # run: cd backend_server; MIX_ENV=ci mix phx.server & |
119 | | - # # - name: Run Tests |
120 | | - # run: npm run test:ci |
0 commit comments