-
Notifications
You must be signed in to change notification settings - Fork 29
35 lines (35 loc) · 905 Bytes
/
test.yml
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
name: CI/CD
on: [push]
jobs:
image:
name: Image
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: devcontainers/[email protected]
with:
push: always
imageName: ghcr.io/rails-lambda/lamby-devcontainer
cacheFrom: ghcr.io/rails-lambda/lamby-devcontainer
runCmd: echo DONE!
test:
runs-on: ubuntu-20.04
needs: image
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup & Test
uses: devcontainers/[email protected]
with:
push: never
cacheFrom: ghcr.io/rails-lambda/lamby-devcontainer
env: |
CI
runCmd: |
./bin/setup
./bin/test