-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathtest.yml
33 lines (33 loc) · 1.02 KB
/
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
name: Test
on: [push]
jobs:
test:
# https://github.com/devcontainers/ci/issues/192
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cache
uses: actions/cache@v3
with:
path: |
./vendor/bundle
./node_modules
key: {{ "${{ runner.os }}-test-v1-${{ hashFiles('Gemfile.lock', 'yarn.lock') }}" }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: {{ "${{ github.repository_owner }}" }}
password: {{ "${{ secrets.GITHUB_TOKEN }}" }}
- name: Setup & Test
uses: devcontainers/ci@v0.2
with:
push: always
imageName: ghcr.io/rails-lambda/{% include "_cctmp/dash_name.txt" %}-devcontainer
cacheFrom: ghcr.io/rails-lambda/{% include "_cctmp/dash_name.txt" %}-devcontainer
env: |
CI
runCmd: |
./bin/setup
./bin/test