-
Notifications
You must be signed in to change notification settings - Fork 1
83 lines (67 loc) · 2.16 KB
/
Copy pathtest.yaml
File metadata and controls
83 lines (67 loc) · 2.16 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: Test
on:
push:
branches: [ master, dev ]
pull_request:
branches: [ master, dev ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Install DuckDB
run: |
wget https://install.duckdb.org/v1.4.3/libduckdb-linux-amd64.zip &&
unzip libduckdb-linux-amd64.zip -d libduckdb &&
sudo mv libduckdb/duckdb.* /usr/local/include/ &&
sudo mv libduckdb/libduckdb.so /usr/local/lib &&
sudo ldconfig &&
rm -fr libduckdb-linux-amd64.zip libduckdb
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
bundler-cache: true
# - name: Setup Tapioca cache
# id: cache-tapioca
# uses: actions/cache@v5
# with:
# path: sorbet
# key: ${{ runner.os }}-${{ hashFiles('Gemfile.lock') }}
# - name: Init Tapioca
# if: steps.cache-tapioca.outputs.cache-hit != 'true'
# run: |
# bundle exec tapioca init && \
# bundle exec srb rbi suggest-typed
- name: Install httpfs extension for DuckDB
run: |
bundle exec ruby -e "require 'duckdb'; DuckDB::Database.open.connect.query('INSTALL httpfs');"
- name: Run rubocop
run: bundle exec rubocop --parallel -c .rubocop.yml
# - name: Run typecheck
# run: |
# bundle exec rake rails_rbi:routes && \
# bundle exec tapioca dsl && \
# bundle exec srb typecheck -q
# - name: Run security checks
# run: |
# bin/bundler-audit --update
# bin/brakeman -q -w2
- name: Run tests
run: bundle exec rake test
docker:
runs-on: ubuntu-latest
needs: [test]
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev'
permissions:
contents: read
packages: write
id-token: write
steps:
- name: Docker Build and Push
uses: cartoway/docker-compose-build-push-action@main
with:
registry_password: ${{ secrets.GITHUB_TOKEN }}