diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml new file mode 100644 index 0000000..68d0e94 --- /dev/null +++ b/.github/workflows/c-cpp.yml @@ -0,0 +1,19 @@ +name: C/C++ CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Setup + run: make setup_test + - name: Test + run: make test diff --git a/Dockerfile b/Dockerfile index 664019a..c2ba141 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -from ruby:3.0.0-slim +from ruby:3.0.4-slim RUN apt update && apt -y upgrade RUN apt install -y \ @@ -14,7 +14,7 @@ RUN apt install -y \ RUN gem update --system ARG USER_ID -RUN useradd -m -u $USER_ID mrubyc +RUN if [ $USER_ID -eq 0 ]; then export USER_ID=1000; fi && useradd -m -u $USER_ID mrubyc RUN mkdir /work && chown mrubyc /work USER mrubyc diff --git a/Gemfile.lock b/Gemfile.lock index 191840f..9707738 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,25 +1,23 @@ GEM remote: https://rubygems.org/ specs: - activesupport (6.1.6) + activesupport (7.0.3) concurrent-ruby (~> 1.0, >= 1.0.2) i18n (>= 1.6, < 2) minitest (>= 5.1) tzinfo (~> 2.0) - zeitwerk (~> 2.3) concurrent-ruby (1.1.10) i18n (1.10.0) concurrent-ruby (~> 1.0) minitest (5.15.0) - mrubyc-test (0.7.0) - activesupport (~> 6.0) + mrubyc-test (0.7.2) + activesupport (~> 7.0) rufo (~> 0.12) - thor (~> 1.0) + thor (~> 1.2) rufo (0.13.0) thor (1.2.1) tzinfo (2.0.4) concurrent-ruby (~> 1.0) - zeitwerk (2.5.4) PLATFORMS ruby